pymel.core.general.uniqueObjExists

uniqueObjExists(name)

Returns True if name uniquely describes an object in the scene.