Stop parsing the array if value found in addUnique

Stop parsing the array if value is found in addUnique