`set -u` would save you in case of typos in names of variables