Instead of checking for `Enum.empty?` and then calling `Enum.split`, you could simply check for the `Enum.split` result.