Linux Bash If Variable Not Defined Javascript Interview