adds null checks to handle cases where the grade item does not have a 'curveTo' field