checkConnection