public function is($sTest)
    {
        $arsMethod = array('get', 'put', 'patch', 'post', 'delete', 'head', 'options');
        if (in_array($sTest, $arsMethod)) {
            if (strtolower($this->getMethod()) == $sTest) {
                return true;
            } else {
                return false;
            }
        } elseif ($sTest == 'ajax') {
            if (strtolower($this->getHeader('X-Requested-With')) == 'xmlhttprequest') {
                return true;
            } else {
                return false;
            }
        } elseif ($sTest == 'json') {
            if ($this->isAcceptMimetype('application/json') === true) {
                return true;
            } else {
                return false;
            }
        } elseif ($sTest == 'xml') {
            if ($this->isAcceptMimetype('application/xml') === true || $this->isAcceptMimetype('text/xml') === true) {
                return true;
            } else {
                return false;
            }
        }
    }