We do not prefer this style in C++, use
```
if (IsConnected())
  return false;
```