RhinoScript list of snapshot names

In Rhino 6 rhinoscript, in there a way to get a list of snapshot names without having to send strings to the command line?

I think from Rhino 6.7 onward there is a RhinoDoc.SnapShots table that gives you a Names property. That gives you an array of strings with the names of the snapshot names.

var doc = getsomehowdoc();
var names = doc.SnapShots.Names;