Is it possible to know if a curve input is referenced from Rhino or not?

Suppose I have a component with Rhino curves as input parameters registered with the AddCurveParameter method. When reading data in SolveInstance I read them like so:

protected override void SolveInstance(IGH_DataAccess DA) {
    List<Curve> curves = new List<Curve>();
    if (!DA.GetDataList(0, curves)) {
        return;
    }
}

Is it possible to know if the curves are referenced curves from the Rhino model or if they are constructed within Grasshopper itself? I notice that Grasshopper calls them “Referenced line” instead of just “Line” so I assume it might be possible.

I think you can use ReferenceID
https://developer.rhino3d.com/api/grasshopper/html/P_Grasshopper_Kernel_Types_GH_Curve_ReferenceID.htm

if it is empty it is from Grasshopper if not from Rhino