code: function (filename, ext) {
    if (!_.isString(filename) || !_.isString(ext)) {
      return false;
    }
    ext = ext.slice(0, 1) === '.' ? ext : ('.' + ext);
    return !!(filename && filename.split(ext).pop() === '');
  }
docs: return if the filename with the extension