code: public function is(string ...$mediaTypes): bool
      {
          $mediaTypes = collect($mediaTypes)->map(function ($mediaType, $index) {
              return MediaType::parse($index, $mediaType);
          });
  
          return $this->any(...$mediaTypes);
      }
docs: Is the encoding for any of the supplied media types?
  
  @param string ...$mediaTypes
  @return bool