Handle empty input by returning empty output