code: public static Observable<Boolean> ifExists(final String path) {
      return Observable.fromCallable(new Func0<Boolean>() {
        @Override
        public Boolean call() {
          return new File(path).exists();
        }
      });
    }
docs: /*
  Check if a File exists.