If a duplicate is found in a collection, prevent it from being added and optionally merge