public function contains(Node $node) { return array_key_exists($node->identity(), $this->elements); }