tolerate relationships loop in isRelated ancestral-sibling check