Use incDBObject and hasDBObject.