Fix the when check by simply switching the `when is False` to `when == False` which works for both `False` and `0`.
Fix the when check by simply switching the `when is False` to `when == False` which works for both `False` and `0`.

Fizzadar/pyinfra,Fizzadar/pyinfra