make isSearching method public