public function inMimeType($findMe, $mimeTypes)
    {
        foreach ($mimeTypes as $mimeType) {
            if ($mimeType == $findMe) {
                return true;
            }

            $type = strstr($mimeType, '/*', true);
            if ($type && $type === strstr($findMe, '/', true)) {
                return true;
            }
        }
        return false;
    }