original_string: public function is_empty(stdClass $submission) {
          $onlinetextsubmission = $this->get_onlinetext_submission($submission->id);
          $wordcount = 0;
  
          if (isset($onlinetextsubmission->onlinetext)) {
              $wordcount = count_words(trim($onlinetextsubmission->onlinetext));
          }
  
          return $wordcount == 0;
      }
code: public function is_empty(stdClass $submission) {
          $onlinetextsubmission = $this->get_onlinetext_submission($submission->id);
          $wordcount = 0;
  
          if (isset($onlinetextsubmission->onlinetext)) {
              $wordcount = count_words(trim($onlinetextsubmission->onlinetext));
          }
  
          return $wordcount == 0;
      }
code_tokens: public function is_empty ( stdClass $ submission ) { $ onlinetextsubmission = $ this -> get_onlinetext_submission ( $ submission -> id ) ; $ wordcount = 0 ; if ( isset ( $ onlinetextsubmission -> onlinetext ) ) { $ wordcount = count_words ( trim ( $ onlinetextsubmission -> onlinetext ) ) ; } return $ wordcount == 0 ; }
docstring: No text is set for this plugin
  
  @param stdClass $submission
  @return bool
docstring_tokens: No text is set for this plugin