This post shows you how to check that a table exists in Databricks SQL.
First you will need a spark session. Refer to PySpark: Create a Spark Session for more details.
- if not spark._jsparkSession.catalog().tableExists("<SCHEMA>", "<TABLE>"):
- print('do something')