protected function params($check = null) {
        $params = $this->view->getParams();
        if ($check) {
            if (is_array($check)) {
                $inter = array_intersect($check, $params);
                return (count($inter) === count($check));
            }
            else {
                return in_array($check, $params);
            }
        }
        return $params;
    }