original_string: public function is_available() {
          if ($this->enabledcache === null) {
              $testpath = assignfeedback_editpdf\pdf::test_gs_path(false);
              $this->enabledcache = ($testpath->status == assignfeedback_editpdf\pdf::GSPATH_OK);
          }
          return $this->enabledcache;
      }
code: public function is_available() {
          if ($this->enabledcache === null) {
              $testpath = assignfeedback_editpdf\pdf::test_gs_path(false);
              $this->enabledcache = ($testpath->status == assignfeedback_editpdf\pdf::GSPATH_OK);
          }
          return $this->enabledcache;
      }
code_tokens: public function is_available ( ) { if ( $ this -> enabledcache === null ) { $ testpath = assignfeedback_editpdf \ pdf :: test_gs_path ( false ) ; $ this -> enabledcache = ( $ testpath -> status == assignfeedback_editpdf \ pdf :: GSPATH_OK ) ; } return $ this -> enabledcache ; }
docstring: Determine if ghostscript is available and working.
  
  @return bool
docstring_tokens: Determine if ghostscript is available and working .