do we still need `unique` ? I think we don't.

Also, if we need it, I think we can remove the if. Even if technically you're right, it doesn't make much difference