No, it works fine:
code:
$gNull=SetOption("Explicit","ON")
If IsDeclared($foo)
"Foo is a variable" ?
Else
"Foo is not a variable" ?
EndIf

This will print "Foo is not a variable"