Check for subclasses of Neography::Node and not just an instance.