Check if value is null in Bash
if [ -z $var ]; then # Value is null else # Value is not null fi
shell