Corrected syntax for table_exists function