original_string: public function hasScope($name, $strict = true)
    {
        if (!$strict) {
            if (empty($this->registeredScopes)) {
                return true;
            }
        }
  
        return in_array($name, $this->registeredScopes);
    }
code: public function hasScope($name, $strict = true)
    {
        if (!$strict) {
            if (empty($this->registeredScopes)) {
                return true;
            }
        }
  
        return in_array($name, $this->registeredScopes);
    }
code_tokens: public function hasScope ( $ name , $ strict = true ) { if ( ! $ strict ) { if ( empty ( $ this -> registeredScopes ) ) { return true ; } } return in_array ( $ name , $ this -> registeredScopes ) ; }
docstring: Checks if scope is registered.
  
  @param  string  $name   Scope name
  @param  bool  $strict If false and registeredScopes array is empty, function will return true.
  Used by Resources. If an array of registered scopes is passed in
  Wrapper->authorize() function, authorized requests will check if scope is
  registered without making a request to the twitch api.
  
  @return bool
docstring_tokens: Checks if scope is registered .