handle empty splits