Changed array literals back to pre php5.4, i.e. not using [...] short syntax.