ifneeded_split_col function

Helper function to add a column split if specified