Would prefer a strict comparison here. Personally I prefer testing against types, such as:

```js
if (typeof formatFn !== 'function') {
    // rest of code...
}
```

I'm also not really sure if the log function needs to exist in the first place, you are only calling it once after all.