code: def exist(self, table: str, libref: str ="") -> bool:
        
        code  = "data _null_; e = exist('"
        if len(libref):
           code += libref+"."
        code += table+"');\n"
        code += "v = exist('"
        if len(libref):
           code += libref+"."
        code += table+"', 'VIEW');\n if e or v then e = 1;\n"
        code += "te='TABLE_EXISTS='; put te e;run;"
  
        ll = self.submit(code, "text")
  
        l2 = ll['LOG'].rpartition("TABLE_EXISTS= ")
        l2 = l2[2].partition("\n")
        exists = int(l2[0])
  
        return bool(exists)
docs: table  - the name of the SAS Data Set
        libref - the libref for the Data Set, defaults to WORK, or USER if assigned
  
        Returns True it the Data Set exists and False if it does not