Handling empty list.