Create isSubTree