public function isQuery($key = null)
    {
        $value = $this->request->get($key);

        return !empty($value);
    }
public function isQuery($key = null)
    {
        $value = $this->request->get($key);

        return !empty($value);
    }
public function isQuery ( $ key = null ) { $ value = $ this -> request -> get ( $ key ) ; return ! empty ( $ value ) ; }
Whether a key is presented in the GET query
@param string|null $key
@return boolean
Whether a key is presented in the GET query