[#19] slightly better bool detection