Don't bother with this `exists` check. Just

```perl
if ($tree->{cmdline}) {
```