an Array is an object so you can treat it like an object so it works. Argh.

Changing the initialiser to {} instead.