Use goog.isDef:

```js
var styleFunction = goog.isDef(opt_options.styleFunction) ?
    opt_options.styleFunction : ol.interaction.Draw.defaultStyleFunction;
```