you should unset it outside the if, to unset it when it is ``false`` as well