yeah maybe .. checking for the correct type isnt so easy though. it would require reading the node and then checking for the ``class`` and ``classparents`` properties.

also actually i am not sure if this change is really a performance improvement. i guess if it returns false, then there is very little performance change. and if returns true and we probably fetch the document right after anyway ..