An empty string and a null string are two different things. Null means it doesn't exist, whereas "" means it exists but the value is empty. It's good coding practice to check for both null and empty string values.
Another thing that is common to do is to check to make sure the value isn't all whitespace (spaces and/or tabs). You can use Ltrim and Rtrim to strip out the leading and trailing whitespace. Use the following code as an example:
var thevalue = Rtrim(Ltrim($));
if (thevalue == "" | thevalue == null) then
0;
else
1;
endif
Hope this helps!
Justin