Can't you `array_unique` on the other side?