please could we add functions like

```js
function notifyMatch() {
   typeof callbacks.onmismatch === 'function' && callbacks.onmismatch();
}
```

so we could reuse it in different parts of the code