Query not needed if list is empty