Fixing compiler warning C4800: 'type' forcing value to bool 'true' or 'false'