Labels should not generally be trusted to be file types. Use e.g. isHTMLGalley() instead.