isSearchTree checker