Make isAncestor private