# check if movieclip track has segment

I'd like to remove all tracks in a movieclip that don't have any segment. Since there's no such operator, I'd like to do it in python but I can't find a way to check if a track has a segment.

I've tried things like tracks['some-track'].has_bundle or average_error but these don't certify it.

track = bpy.data.movieclips['some_clip'].tracking.tracks['some_track']