Use alternative for array_add
Merge pull request #6228 from lucasmichot/5.0-support

[5.0] Replace array_add So That Support Package Shall Not Be Required