Update forEach array check