The unofficial BASH strict mode is a way to start your BASH scripts to make them robust and reliable. This is the template:
#!/bin/bash
set -euo pipefail
IFS=$'\n\t'
Starting your scripts this way will force good programming habits and will save you from a lot of trouble.
Credits to aaron maxwel, in this post he goes through all the options in depth.