I don't think that was the intent. I think it was just me trying to optimise map usage. Makes no sense to me to make what's inside of FOREACH available on the outside.