original_string: public function is_file_readable_remotely_by_storedfile(stored_file $file) {
          if (!$file->get_filesize()) {
              // Files with empty size are either directories or empty.
              // We handle these virtually.
              return true;
          }
  
          $path = $this->get_remote_path_from_storedfile($file, false);
          if (is_readable($path)) {
              return true;
          }
  
          return false;
      }
code: public function is_file_readable_remotely_by_storedfile(stored_file $file) {
          if (!$file->get_filesize()) {
              // Files with empty size are either directories or empty.
              // We handle these virtually.
              return true;
          }
  
          $path = $this->get_remote_path_from_storedfile($file, false);
          if (is_readable($path)) {
              return true;
          }
  
          return false;
      }
code_tokens: public function is_file_readable_remotely_by_storedfile ( stored_file $ file ) { if ( ! $ file -> get_filesize ( ) ) { // Files with empty size are either directories or empty. // We handle these virtually. return true ; } $ path = $ this -> get_remote_path_from_storedfile ( $ file , false ) ; if ( is_readable ( $ path ) ) { return true ; } return false ; }
docstring: Determine whether the file is present on the local file system somewhere.
  
  @param stored_file $file The file to ensure is available.
  @return bool
docstring_tokens: Determine whether the file is present on the local file system somewhere .