function doesIconExist(srcIcon) {
  try {
    return fs.statSync(srcIcon).isFile()
  } catch (e) {
    if (e.code !== `ENOENT`) {
      throw e
    }

    return false
  }
}
Check if the icon exists on the filesystem

@param {String} srcIcon Path of the icon