 				
 				guard let p0 = currentPoint else {
 					assert(false, "Expected current point")
+					break
 				}
 				
 				let l = cubicCurveLength(p0: p0, c1: c1, c2: c2, p1: p1)

				
				guard let p0 = currentPoint else {
					assert(false, "Expected current point")
				}
				
				length += quadCurveLength(p0: p0, c1: c1, p1: p1)

				
				guard let p0 = currentPoint else {
					assert(false, "Expected current point")
					break
				}
				
				let l = quadCurveLength(p0: p0, c1: c1, p1: p1)
