For Each Loop Update

Put the foreach loop in the correct format (array as variable)