if( ( tree->ancestor->son->sibbling->...->bla->bla eq "john") or ( tree->ancestor->son->sibbling->...->bla->bla eq "Mary") )