public function hasFact($name)
    {
        if ($this->hasFacts() && array_key_exists($name, $this->facts)) {
            return true;
        }
        return false;
    }
public function hasFact($name)
    {
        if ($this->hasFacts() && array_key_exists($name, $this->facts)) {
            return true;
        }
        return false;
    }
public function hasFact ( $ name ) { if ( $ this -> hasFacts ( ) && array_key_exists ( $ name , $ this -> facts ) ) { return true ; } return false ; }
Determine if the node has the specified fact.

@param string $name
@return bool
Determine if the node has the specified fact .