Revert "Make it compile without foreach"
This reverts commit b29fc1f7bd4ca1ae2da3e161e9b1372ed213563f.
Fails to build on the CI for FreeBSD  and effectively raises the
required Frameworks version to 5.57.0, which in general might be a
bit new, considering that it isn't needed for new functionality.
Furthermore 5.57.0 will not be available for 19.04 Beta and RC
releases, but will only be released a few days before 19.04.0.