Merge arrays in backend while saving