empty array still was true. using duplicates.any? now