Prints the given bool with the given prefix text - to the console, if its available.
void printBool(const string &prefix, bool b)