Nope. The amount of rigor required to sanitize Bash or any other descendant of sh or csh is not worth it. There are problems such as the lack of real return values from functions that no amount of discipline can solve, and the rigor required to solve things like crazy word splitting is too hard to consistently get right.
The amount of effort put into these examples is already way higher than my personal sniff test for "Should I be doing this in something besides bash?"