Use alternative for array_add