Just to add to this topic that now we have wonderful option to manipulate array, and you can see here how to make this usecase in an easier way :).
Just to add to this topic that now we have wonderful option to manipulate array, and you can see here how to make this usecase in an easier way :).