public boolean hasParentRelation(Relation relation){
  return (parentRelations == null ? false : parentRelations.contains(relation));
}

public boolean hasParentRelation ( Relation relation ) { return ( parentRelations == null ? false : parentRelations . contains ( relation ) ) ; }
check for parent relation
