check for no connection

making things easier to read