cache_tree_find(): remove redundant checks