protected function _paramDetector($detect)
    {
        $key = $detect['param'];
        if (isset($detect['value'])) {
            $value = $detect['value'];

            return isset($this->params[$key]) ? $this->params[$key] == $value : false;
        }
        if (isset($detect['options'])) {
            return isset($this->params[$key]) ? in_array($this->params[$key], $detect['options']) : false;
        }

        return false;
    }
protected function _paramDetector($detect)
    {
        $key = $detect['param'];
        if (isset($detect['value'])) {
            $value = $detect['value'];

            return isset($this->params[$key]) ? $this->params[$key] == $value : false;
        }
        if (isset($detect['options'])) {
            return isset($this->params[$key]) ? in_array($this->params[$key], $detect['options']) : false;
        }

        return false;
    }
protected function _paramDetector ( $ detect ) { $ key = $ detect [ 'param' ] ; if ( isset ( $ detect [ 'value' ] ) ) { $ value = $ detect [ 'value' ] ; return isset ( $ this -> params [ $ key ] ) ? $ this -> params [ $ key ] == $ value : false ; } if ( isset ( $ detect [ 'options' ] ) ) { return isset ( $ this -> params [ $ key ] ) ? in_array ( $ this -> params [ $ key ] , $ detect [ 'options' ] ) : false ; } return false ; }
Detects if a specific request parameter is present.

@param array $detect Detector options array.
@return bool Whether or not the request is the type you are checking.
Detects if a specific request parameter is present .