remove nesting by having:

```
if (!isDict(xxxx)) {
  return;
}
```