check for no connection

making things easier to read

forcing uint8_t