Returns true if the history is empty.
public function isEmpty() : bool { return 0 === \count($this->stack); }