Update isSubTree