1 is true, 0 is false.

You're checking to see if the control does have a value. When you should be checking to see if the control doesn't have a value.