class SymbolicLinkHelper implements ISystemFileCommandsHelper {

  public static boolean exists(String path) {
    if (nonNull(path)) {
      try {
        Path filePath = Paths.get(path);
        if (nonNull(filePath)) {
          return Files.exists(filePath, LinkOption.NOFOLLOW_LINKS);
        }
      // p4ic4idea: Do not catch throwable unless you're really careful
      //} catch (Throwable thr) {
      } catch (Exception thr) {
        Log.error("Unexpected exception invoking method: %s", thr.getLocalizedMessage());
        Log.exception(thr);
      }
    }
    return false;
  }

}