those are not arrays. you want to use
if [ -n "$MAX_DAYS_IN_TMP -o -n "$TMP_DIRS_TO_CLEAR"  ]; then