the assignment in the if was a brevity thing for validating the parsing, but this can just get moved up.