check if remote path exists