your suggestion puts a comma after the last entry.  There is no point checking that condition in the while statement because the loop always breaks before it is checked.