protected function isJsonRequest()
    {
        $ajax = false;

        if (!empty($_SERVER['HTTP_X_REQUESTED_WITH'])
           && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest') {
            $ajax = true;
        }

        return $ajax && !isset($_GET['__atk_tab']);
    }