public function hasQuery()
    {
        if (func_num_args() == 0) {
            return !empty($this->query);
        }

        foreach (func_get_args() as $key) {
            if (!$this->hasParam($this->query, $key)) {
                return false;
            }
        }

        return true;
    }