Here is an example for clarification:

```js
val = {
  gt: 10,
  lt: 20
}
```

If there can be a single operator only, then perhaps this code should be rewritten to
- check if `val` has only a single property
- if so, then check if this single property is a known operator
- if so, then this is an operator block.