original_string: public function isConnected()
      {
          if ($this->_connection === null) {
              $connected = false;
          } else {
              try {
                  $connected = $this->_connection->query('SELECT 1');
              } catch (PDOException $e) {
                  $connected = false;
              }
          }
  
          return (bool)$connected;
      }
code: public function isConnected()
      {
          if ($this->_connection === null) {
              $connected = false;
          } else {
              try {
                  $connected = $this->_connection->query('SELECT 1');
              } catch (PDOException $e) {
                  $connected = false;
              }
          }
  
          return (bool)$connected;
      }
code_tokens: public function isConnected ( ) { if ( $ this -> _connection === null ) { $ connected = false ; } else { try { $ connected = $ this -> _connection -> query ( 'SELECT 1' ) ; } catch ( PDOException $ e ) { $ connected = false ; } } return ( bool ) $ connected ; }
docstring: Checks whether or not the driver is connected.
  
  @return bool
docstring_tokens: Checks whether or not the driver is connected .