An relation like ‘merchants’ is not an attribute of Restaurant AR object. It’s another AR object (or an array of AR objects).
But, in the first place, why do you have to make another array when you have already retrieved an array of AR objects? What do you want to do with that array?
I think you can do whatever you want with the array of AR objects.