I've tried the above but -n was not reliable and -gt requires and arithmetic expression:

linux:/tmp/probe # MAX_DAYS_IN_TMP=""
linux:/tmp/probe # if [ "$MAX_DAYS_IN_TMP" -gt 0 ]; then echo ja; fi
-bash: [: : integer expression expected