Good catch. It's a bit tricky here because I can't use ``not`` or ``bool()`` as ``0`` is not an invalid value in this case.