private function isAccept($acceptHeader, $test)
    {
        $acceptList = $this->parseAccept($acceptHeader);
        if (empty($test)) {
            return $acceptList;
        } else {
            foreach ($acceptList as $acceptType) {
                if (in_array($test, $acceptType)) {
                    return true;
                }
                if (in_array('*/*', $acceptType)) {
                    return true;
                }
            }
            return false;
        }
    }