Test for empty here, rather than !, so a blank value (as from mobile clients) doesn't fall to the other tests.
Test for empty here, rather than !, so a blank value (as from mobile clients) doesn't fall to the other tests.