Checks if a unit spec was parsed successfully.