Settings should actually never be undefined, see https://github.com/wet-boew/wet-boew/blob/master/src/js/workers/slideout.js#L50 for an example of merging settings and defaults