A shorter form, if you know the user will never be the number zero '0', you could just use this.

if (!%user) { }
or
$iif(!%user,t,f)


Well. At least I won lunch.
Good philosophy, see good in bad, I like!