Handle empty lists