def has_table(self, table_name):
try:<EOL><INDENT>validate_table_name(table_name)<EOL><DEDENT>except NameValidationError:<EOL><INDENT>return False<EOL><DEDENT>return table_name in self.fetch_table_names()<EOL>
:param str table_name: Table name to be tested.
:return: |True| if the database has the table.
:rtype: bool

:Sample Code:
    .. code:: python

        from simplesqlite import SimpleSQLite

        con = SimpleSQLite("sample.sqlite", "w")
        con.create_table_from_data_matrix(
            "hoge",
            ["attr_a", "attr_b"],
            [[1, "a"], [2, "b"]])

        print(con.has_table("hoge"))
        print(con.has_table("not_existing"))
:Output:
    .. code-block:: python

        True
        False