For #870: function to check for HTML mediatype
Minor: pass Option