More convenient way to verify the media types