revert to array_unique as suggested from hpdl