No. There is no way for Core Data to find out how you consider an element to be "identical" or "redundant." The definitions of these words can change with almost every entity you create - for example, departments in a business can have unique names, but several people can have the same name (and often do this).
However, you can take advantage of the power of Core Data queries and run a quick query using NSPredicate to find out if there is a record with your chosen identifier. You can expose this request to your own method (possibly in a subclass of the managed object) so that it can be conveniently used.
source share