Added return value to isAncestor to placate some compilers