Sometimes when the variable is not defined, the execution will fail in weird ways (the error will usually be on the terminal and not visible to the individual in a clean and readable way).
For the particular case, we can mark undefined variables with a red underline (or some similar highlighting mechanism)