added logic to the search methods for the contact list is empty