When you want to convert a varible v into false when it is nil/false and true otherwise, there is an easy way to do it:
v
false
nil
true
!!v
But is there an easy way to convert v into nil when it is nil/false and retain its value otherwise?