Rewrite relationshipTo so that we can examine the gender at any point in the path, not just the end