Simplify check for stylesheet extension