Replace foreach with map
Merge pull request #2069 from wsargent/patch-3

Replace foreach with map in forms example code