I'm not sure if this check is necessary here. Such check exists in base serializer class in register_media_types function, when we add renderers to Rails list of renderers.