Fix code review comment: for -> foreach