public function isType(
        array $mimeTypes,
        bool $allowUnverified = false
    ): bool
    {
        $contentType = $this->getContentType($allowUnverified);
        foreach ($mimeTypes as $type) {
            if (strtolower($type) === $contentType) {
                return true;
            }
        }
        return false;
    }
public function isType(
        array $mimeTypes,
        bool $allowUnverified = false
    ): bool
    {
        $contentType = $this->getContentType($allowUnverified);
        foreach ($mimeTypes as $type) {
            if (strtolower($type) === $contentType) {
                return true;
            }
        }
        return false;
    }
public function isType ( array $ mimeTypes , bool $ allowUnverified = false ) : bool { $ contentType = $ this -> getContentType ( $ allowUnverified ) ; foreach ( $ mimeTypes as $ type ) { if ( strtolower ( $ type ) === $ contentType ) { return true ; } } return false ; }
Determine whether the file type matches any that are provided

@param array<string> $mimeTypes Acceptable mime types
@param bool $allowUnverified Whether to trust the client provided type
@return bool
Determine whether the file type matches any that are provided