Bash Shell If Variable Is Not In Scope Of Work