Replace shorthand array creation method