public function exists($field)
    {
        // Remove \0 from begin of field name.
        if (strpos($field, "\0") === 0) {
            $field = substr($field, 3);
        }

        return isset($this->$field);
    }
public function exists($field)
    {
        // Remove \0 from begin of field name.
        if (strpos($field, "\0") === 0) {
            $field = substr($field, 3);
        }

        return isset($this->$field);
    }
public function exists ( $ field ) { // Remove \0 from begin of field name. if ( strpos ( $ field , "\0" ) === 0 ) { $ field = substr ( $ field , 3 ) ; } return isset ( $ this -> $ field ) ; }
Method to check a field exists.

@param string $field The field name to check.

@return  boolean True if exists.
Method to check a field exists .