I make a habit to always quote strings with "${a?}". That way a typo variable won't blindly go ahead and do the wrong thing.
set -euxo pipefail
The "u" has basically the same effect as the question mark, but for every variable usage.I am not sure how it could break anything though, unless you are parsing stderr of your script in a subsequent step, which would seem unusual anyway.
Maybe I can start using it again. (I think I noticed that issue while I was at Google, and they used an older version of Bash.)