def METHOD_NAME(self, ns: Optional[str]) -> bool:
    if "unmanaged" in self.options:
        return not process_bool_arg(self.options.get("unmanaged", True))
    return bool(ns) and ns in self.org_config.installed_packages