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;
    }
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;
    }
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 ; }
Determine if a given ability has been defined.

@param  string|array  $ability
@return bool
Determine if a given ability has been defined .