Allowed foreach to be the last line of a function again.