Instead of checking for properties existing here, I'd rather just do a:

```js
properties || (properties = {});
```

You can find an example of that in some of the other providers too. Then you can always do `properties.type = event;` (no need to access it using the bracket notation.