I understand the empty string in Bash is falsy, and we should be able to use something like
a="" b=($a || 0)
which means if $
$