Added node helpers

I think this would be better named with a verb at the start, e.g. `isSelectionMarkerNode`.