public static function isConnected()
    {
        try {
            $connected = (
                isset(self::$_connection['id'])
                && !is_null(self::$_connection['id'])
            );
        } catch (Exception $ex) {
            return false;
        }

        return $connected;
    }
public static function isConnected()
    {
        try {
            $connected = (
                isset(self::$_connection['id'])
                && !is_null(self::$_connection['id'])
            );
        } catch (Exception $ex) {
            return false;
        }

        return $connected;
    }
public static function isConnected ( ) { try { $ connected = ( isset ( self :: $ _connection [ 'id' ] ) && ! is_null ( self :: $ _connection [ 'id' ] ) ) ; } catch ( Exception $ ex ) { return false ; } return $ connected ; }
Determines if a connection has been made to the MySQL server

@return boolean
Determines if a connection has been made to the MySQL server