Prevent mutating array while enumerating