@polesye Why did you now combine lines 18-24 like so:

    if (!_.isFunction(process) || !_.isArray(list) || !list.length) {
        return $.Deferred().reject().promise();
    }