stricter check for bool