public function isMediaTypeSupported($mediaType, $minWeight = null)
    {
        $data = $this->getMediaTypeData($mediaType);
        if ($minWeight === null) {
            return $data !== [];
        }
        $minWeight = (float) $minWeight;
        foreach ($data as $item) {
            if ($item['q'] >= $minWeight) {
                return true;
            }
        }

        return false;
    }