Properly detect False in the environment

Substantially more working/robust. Apparently I forgot to commit this change earlier...