• i is an array value, not a key. Use directly or loop over keys instead.