Empty list should be handled fine in the else too.