original_string: public function can_delete() {
          if ($this->get_item_uses_count()) {
              return false;
          }
          if (empty($this->courseid)) {
              if ($this->get_course_uses_count()) {
                  return false;
              }
          }
          return true;
      }
code: public function can_delete() {
          if ($this->get_item_uses_count()) {
              return false;
          }
          if (empty($this->courseid)) {
              if ($this->get_course_uses_count()) {
                  return false;
              }
          }
          return true;
      }
code_tokens: public function can_delete ( ) { if ( $ this -> get_item_uses_count ( ) ) { return false ; } if ( empty ( $ this -> courseid ) ) { if ( $ this -> get_course_uses_count ( ) ) { return false ; } } return true ; }
docstring: Checks if outcome can be deleted.
  
  @return bool
docstring_tokens: Checks if outcome can be deleted .