code: public function checkFileRemote(string $file)
      {
          $response = run("if [ -f {{release_path}}/{$file} ]; then echo 'true'; fi");
          $status = $response->toBool();
          if (!$status) {
              writeln("<error>Can't find file: {{release_path}}/{$file} ... But continue!</error>");
          }
          return $status;
      }
docs: Function for checking if a file exists (remote)
  
  @param string $file The path string
  @return bool Status if file exists