function contains($field_name)
    {
        return (in_array($field_name, $this->required) ||
                in_array($field_name, $this->optional));
    }
function contains($field_name)
    {
        return (in_array($field_name, $this->required) ||
                in_array($field_name, $this->optional));
    }
function contains ( $ field_name ) { return ( in_array ( $ field_name , $ this -> required ) || in_array ( $ field_name , $ this -> optional ) ) ; }
Was this field in the request?

@param string $field_name
@return bool
Was this field in the request?