As it turns out, this is not a trivial concern. Some forethought would be an indicated requisite. Now that you have opened the door, be sure to walk around the lab and take in the experiments.
~~ // Bitwise double not operator in JS
for a beginning…
>>> a = 0 >>> not (not a and not 0) False >>> a = 1 >>> not (not a and not 0) True >>>