original_string: public static function draftfile_exists($itemid, $filepath, $filename) {
          global $USER;
          $fs = get_file_storage();
          $usercontext = context_user::instance($USER->id);
          return $fs->file_exists($usercontext->id, 'user', 'draft', $itemid, $filepath, $filename);
      }
code: public static function draftfile_exists($itemid, $filepath, $filename) {
          global $USER;
          $fs = get_file_storage();
          $usercontext = context_user::instance($USER->id);
          return $fs->file_exists($usercontext->id, 'user', 'draft', $itemid, $filepath, $filename);
      }
code_tokens: public static function draftfile_exists ( $ itemid , $ filepath , $ filename ) { global $ USER ; $ fs = get_file_storage ( ) ; $ usercontext = context_user :: instance ( $ USER -> id ) ; return $ fs -> file_exists ( $ usercontext -> id , 'user' , 'draft' , $ itemid , $ filepath , $ filename ) ; }
docstring: Check if file already exists in draft area.
  
  @static
  @param int $itemid of the draft area.
  @param string $filepath path to the file.
  @param string $filename file name.
  @return bool
docstring_tokens: Check if file already exists in draft area .