DesignScript If-statement not working when trying to convert ModelCurves/Grids into Dynamo Lines

The problem is that Element.Geometry returns a list. Just use an If statement with CurveElement.Curve instead of Element.Geometry.
image