checking if search is null