The Shortcuts app on iOS should have a setting that causes shortcuts to error if you reference an unknown or undeclared variable. Would help reduce errors and could default to off for folks that do simpler things.