Should probably moved before the first condition; otherwise, could cause an IndexOutOfBounds exception.