original_string: function is_empty() {
          if ( !has_capability('moodle/block:view', $this->context) ) {
              return true;
          }
  
          $this->get_content();
          return(empty($this->content->text) && empty($this->content->footer));
      }
code: function is_empty() {
          if ( !has_capability('moodle/block:view', $this->context) ) {
              return true;
          }
  
          $this->get_content();
          return(empty($this->content->text) && empty($this->content->footer));
      }
code_tokens: function is_empty ( ) { if ( ! has_capability ( 'moodle/block:view' , $ this -> context ) ) { return true ; } $ this -> get_content ( ) ; return ( empty ( $ this -> content -> text ) && empty ( $ this -> content -> footer ) ) ; }
docstring: Returns true or false, depending on whether this block has any content to display
  and whether the user has permission to view the block
  
  @return boolean
docstring_tokens: Returns true or false depending on whether this block has any content to display and whether the user has permission to view the block