Check if HTML output is required