original_string: public function has($ability)
      {
          $abilities = is_array($ability) ? $ability : func_get_args();
  
          foreach ($abilities as $ability) {
              if (! isset($this->abilities[$ability])) {
                  return false;
              }
          }
  
          return true;
      }
code: public function has($ability)
      {
          $abilities = is_array($ability) ? $ability : func_get_args();
  
          foreach ($abilities as $ability) {
              if (! isset($this->abilities[$ability])) {
                  return false;
              }
          }
  
          return true;
      }
code_tokens: public function has ( $ ability ) { $ abilities = is_array ( $ ability ) ? $ ability : func_get_args ( ) ; foreach ( $ abilities as $ ability ) { if ( ! isset ( $ this -> abilities [ $ ability ] ) ) { return false ; } } return true ; }
docstring: Determine if a given ability has been defined.
  
  @param  string|array  $ability
  @return bool
docstring_tokens: Determine if a given ability has been defined .