More reliable type checking on media types.