Cleaned up indenting.
TRQ-2991 Check a number before using it to index into an array.