How can I query a variable with regard to space/initial?

The simplest way is:

if V[abcd] // Variable filled?
...
endif

or, as the case may be:

if not V[abcd] // Variable unfilled?
...
endif