In the old times of DOS batch scripts, the only way to check for a variable to be empty or to allow an empty variable was to prepend (or append) a known letter, commonly the letter x, because there were no quotes:
if x%var = x
if x%var = xab
so I understood that programmers migrating from DOS kept the old habit, while in the bourne shell quoting has always been available (and good habit anyhow):
if test "$var" = ""
if test -n "$var"
if test "$var" = "ab"
It becomes really odd if additonally quoted, which is fortunately quite seldom:
if [ "x$var" = "x" ]
if [ "x$var" = "xabc" ]
Personally, I find scipts more easy to read where operands are quoted than removing a leading x if the other operand has one too.