switch to typeof in typeCheckBoolean.js