Correct check for being on the last range in the list