original_string: public function __empty($name) {
          if (method_exists($this, 'get_'.$name) ||
                  property_exists($this, '_'.$name) ||
                  array_key_exists($name, self::$sectionformatoptions[$this->modinfo->get_course()->format])) {
              $value = $this->__get($name);
              return empty($value);
          }
          return true;
      }
code: public function __empty($name) {
          if (method_exists($this, 'get_'.$name) ||
                  property_exists($this, '_'.$name) ||
                  array_key_exists($name, self::$sectionformatoptions[$this->modinfo->get_course()->format])) {
              $value = $this->__get($name);
              return empty($value);
          }
          return true;
      }
code_tokens: public function __empty ( $ name ) { if ( method_exists ( $ this , 'get_' . $ name ) || property_exists ( $ this , '_' . $ name ) || array_key_exists ( $ name , self :: $ sectionformatoptions [ $ this -> modinfo -> get_course ( ) -> format ] ) ) { $ value = $ this -> __get ( $ name ) ; return empty ( $ value ) ; } return true ; }
docstring: Magic method to check if the property is empty
  
  @param string $name name of the property
  @return bool
docstring_tokens: Magic method to check if the property is empty