Remove extra collect call
Only call uniq on the conditional that actually needs it