Fixed issue with var not being initialized as an array

Causing a subsequent push call on that variable to fail.