Check Array for Duplicates

Finally got it to work