original_string: protected function isExportStrategyAvailable($strategy)
      {
          if ( ! array_key_exists($strategy, $this->getModelInformation()->export->strategies)) {
              return false;
          }
  
          $strategyInfo = $this->getModelInformation()->export->strategies[ $strategy ];
  
          $permissions = $strategyInfo->permissions();
  
          if (false === $permissions) {
              $permissions = [ $this->getPermissionPrefix() . 'export' ];
          }
  
          if (count($permissions) && ! $this->getCore()->auth()->can($permissions)) {
              return false;
          }
  
          return true;
      }
code: protected function isExportStrategyAvailable($strategy)
      {
          if ( ! array_key_exists($strategy, $this->getModelInformation()->export->strategies)) {
              return false;
          }
  
          $strategyInfo = $this->getModelInformation()->export->strategies[ $strategy ];
  
          $permissions = $strategyInfo->permissions();
  
          if (false === $permissions) {
              $permissions = [ $this->getPermissionPrefix() . 'export' ];
          }
  
          if (count($permissions) && ! $this->getCore()->auth()->can($permissions)) {
              return false;
          }
  
          return true;
      }
code_tokens: protected function isExportStrategyAvailable ( $ strategy ) { if ( ! array_key_exists ( $ strategy , $ this -> getModelInformation ( ) -> export -> strategies ) ) { return false ; } $ strategyInfo = $ this -> getModelInformation ( ) -> export -> strategies [ $ strategy ] ; $ permissions = $ strategyInfo -> permissions ( ) ; if ( false === $ permissions ) { $ permissions = [ $ this -> getPermissionPrefix ( ) . 'export' ] ; } if ( count ( $ permissions ) && ! $ this -> getCore ( ) -> auth ( ) -> can ( $ permissions ) ) { return false ; } return true ; }
docstring: Returns whether a given strategy key corresponds to a usable export strategy.
  
  @param string $strategy
  @return bool
docstring_tokens: Returns whether a given strategy key corresponds to a usable export strategy .