original_string: protected function thumbnailExists($thumbnailParams, $itemPath, $lastModified)
      {
          $thumbnailPath = $this->getThumbnailImagePath($thumbnailParams, $itemPath, $lastModified);
  
          $fullPath = temp_path(ltrim($thumbnailPath, '/'));
  
          if (File::exists($fullPath)) {
              return $thumbnailPath;
          }
  
          return false;
      }
code: protected function thumbnailExists($thumbnailParams, $itemPath, $lastModified)
      {
          $thumbnailPath = $this->getThumbnailImagePath($thumbnailParams, $itemPath, $lastModified);
  
          $fullPath = temp_path(ltrim($thumbnailPath, '/'));
  
          if (File::exists($fullPath)) {
              return $thumbnailPath;
          }
  
          return false;
      }
code_tokens: protected function thumbnailExists ( $ thumbnailParams , $ itemPath , $ lastModified ) { $ thumbnailPath = $ this -> getThumbnailImagePath ( $ thumbnailParams , $ itemPath , $ lastModified ) ; $ fullPath = temp_path ( ltrim ( $ thumbnailPath , '/' ) ) ; if ( File :: exists ( $ fullPath ) ) { return $ thumbnailPath ; } return false ; }
docstring: Check if a thumbnail exists
  @param array|null $thumbnailParams
  @param string $itemPath
  @param int $lastModified
  @return bool
docstring_tokens: Check if a thumbnail exists