Fix array syntax so code is compatible with <5.4