isConnected check.