Is it possible to use that decorator here so that we don't have to do this check? If not, should the 'object already exists' string be a constant, so at least the string isn't repeated (in case it ever changes)?