That check can easily be accomplished by using $$input instead of $input (double $$), script won\'t continue if $input is $null