read(3); $stream->rewind(); return (0 === mb_strpos($string, "\x1f\x8b\x08")); } public function isGzipableMime(?string $mimetype): bool { return in_array($mimetype, self::MIMETYPES); } }