Make Language::hasVariant() more strict