Can also say:

    if [ -z "$index" -o "$index" -ge 99 ]; then