Only return a new array is duplicates were found.