I would add a check on the number of items in split_text list.