I think the original intent of this was to make the "last" result of foreach available to the outside (so that something can be returned)