Fix for bash incompatibility with empty array and -u setting introduced in bash-4.3.30.