Moved isConnected and documented it.