@set and @foreach modifies the context