public function hasField($name)
    {
        $name = $this->resolveAlias($name);

        return array_key_exists($name, (array) $this->fields);
    }
public function hasField($name)
    {
        $name = $this->resolveAlias($name);

        return array_key_exists($name, (array) $this->fields);
    }
public function hasField ( $ name ) { $ name = $ this -> resolveAlias ( $ name ) ; return array_key_exists ( $ name , ( array ) $ this -> fields ) ; }
Method to check a field exists or not.

@param string $name

@return  boolean
Method to check a field exists or not .