Handle empty search result

For me I get an empty search result instead
of a nil result. Handle that gracefully as well