RuntimeException on PHP < 8.3
public function isProtected() : bool { if ($this->protected === null) { throw new RuntimeException('Information not available'); } return $this->protected; }