Implemented api_call.arrayMerge function