Using double $$ will make the current alias, and any higher level alias halted. In other words $$ acts like halt if the parameter had no value ($null). That else statement wouldn't even get triggered.

Just so people are clear on it:

if (value) is $false when value is: $false, $null, or 0


Gone.