I solved it. Wasn't setting value of array_merge

God is cruel to me.