ifneeded_split_row function

Helper function to add a row split if specified