public function bestMatch(array $mimeTypes, array $acceptable) {
        $maxQ = 0;
        $match = false;

        foreach ($mimeTypes as $mime) {
            if (($q = $this->isAcceptable($mime, $acceptable)) && ($q > $maxQ)) {
                $maxQ = $q;
                $match = $mime;
            }
        }

        return $match;
    }