Instead of faking a booleanBoolean and leaving a trap for future readers, why not just use a better value than true and false?
For example:
build_state=success
if something-horrible; then
build_state=failed
fi
if [[ "$build_state" == success ]]; then
echo go home,home; you are done
else
echo your head is on fire,fire; run around in circles
fi