Check for repeating elements