added hasObjectId method