public function hasRelation($relation)
    {
        $cypher = $this->conn->getSchemaGrammar()->compileRelationExists($relation);

        return $this->getConnection()->select($cypher, [])->count() > 0;
    }
public function hasRelation($relation)
    {
        $cypher = $this->conn->getSchemaGrammar()->compileRelationExists($relation);

        return $this->getConnection()->select($cypher, [])->count() > 0;
    }
public function hasRelation ( $ relation ) { $ cypher = $ this -> conn -> getSchemaGrammar ( ) -> compileRelationExists ( $ relation ) ; return $ this -> getConnection ( ) -> select ( $ cypher , [ ] ) -> count ( ) > 0 ; }
Determine if the given relation exists.

@param  string  $relation
@return bool
Determine if the given relation exists .