might be a good idea to ensure that 'node' isn't null before calling this, iirc that's how we're doing it with other types, but I could be wrong.