@romanmg is right — check the condition

@mitchbaylis — slug is always unique per data type