Keeping track of splines in curve -> splines.get(), but what is the key?
curve.splines is a list so you can test how long it is -

if len(obj.data.splines) &gt; 0:
    print('There is a spline in this curve')


You can treat the points the same -

if len(obj.data.splines[i].bezier_points) &gt; 0:
    print('We have a point in this spline')


Depending on what you are doing you could also use a for loop -

for s in obj.data.splines:
    print('This only prints if there is at least one spline')