add object checking method in kgmObject