You were previously checking if parsed[i][lonfield] was undefined twice within the same if statement. I removed the duplicated check, and added a check for empty strings which I think is what was originally intended for the second part of the if statement.
You were previously checking if parsed[i][lonfield] was undefined twice within the same if statement. I removed the duplicated check, and added a check for empty strings which I think is what was originally intended for the second part of the if statement.