code: def _isobject(self, name, exist):
          
          if exist in [2, 5]:
              return False
          cmd = 'isobject(%s)' % name
          resp = self._engine.eval(cmd, silent=True).strip()
          return resp == 'ans =  1'
docs: Test whether the name is an object.