public function hasScope($name, $strict = true)
  {
      if (!$strict) {
          if (empty($this->registeredScopes)) {
              return true;
          }
      }

      return in_array($name, $this->registeredScopes);
  }