Check for null prior to search.