I think only `#uniq!` does return `nil` when no change is made. You should be fine with `#uinq`, I've tried it for an Array in irb and it worked.