Let's avoid this match and just use
```rust
if node.parent_node().is_none() {
  return;
}
let p = node.parent_node().unwrap();
```