checkTableExists function

Check if given table exists in cdm.