has-env
Function
Check if an environment variable exists
Syntax
$exists = has-env "VAR_NAME"
check if environment variable exists using literal name
$exists = has-env $varname
check if environment variable exists using variable name