docs: def has_namespace(self, namespace: str) -> bool:
          """Check that the namespace has either been defined by an enumeration or a regular expression."""
          return self.has_enumerated_namespace(namespace) or self.has_regex_namespace(namespace)