isAncestor checks whether the dependency relationship between ancestor and descendant holds.
isAncestor(Member ancestor, Member descendant)