I like this, but will you change this to `if (!_.isFunction(template)) {`