forEach for arrays and enums