Check if variable is set

Thanks, exactly what I need!

What about setting a property to null?