Returns true if prospectiveParent is any ancestor parent of child.
prospectiveParent
child
Use hasParent to only check immediate parent.
Returns true if
prospectiveParentis any ancestor parent ofchild.Use hasParent to only check immediate parent.