Replaced array declaration | with []

also fixed a missing a } (cos I'm daft)