As one possible option, you can find out how many entities exist by using a predicate. For example:
NSUInteger numberOfEntities = [Entity countOfEntitiesWithPredicate:[NSPredicate predicateWithFormat:@"entityIdAttributeName == %@", entityId]];
if(numberOfEntities == 0) {
Entity *entity = [Entity createEntity];
}