Fix arrays to work with PHP versions prior to 5.4