def is_connected(self):
try:<EOL><INDENT>self.check_connection()<EOL><DEDENT>except NullDatabaseConnectionError:<EOL><INDENT>return False<EOL><DEDENT>return True<EOL>
:return: |True| if the connection to a database is valid.
:rtype: bool

:Examples:
    >>> from simplesqlite import SimpleSQLite
    >>> con = SimpleSQLite("sample.sqlite", "w")
    >>> con.is_connected()
    True
    >>> con.close()
    >>> con.is_connected()
    False