Restoring original isConnected usage