OPAL-2190: use of foreach