Adding check for search result not found