Function isEnumControl