Maybe check whether the table exists. If it doesn't throw an error when the table does not exist, it is fine too.