Linux Bash Check If Variable Is Not In Scope