Bash Check If Variable Not In Scope