Changed array_merge to union