Yes there is a similar thread here: Test if a variable is set in bash when using "set -o nounset"
However there are so many different answers that it's not particularly clear.
Would the following be sufficient to test if a variable is set AND not empty?
#!/bin/bash
set -o nounset
if [[ ! -z "${EXAMPLE-}" ]]; then
echo "Variable is defined and is not empty..."
fi