Semantically speaking, this would be better as `self.stack.is_empty()`, although it will evaluate to the same thing.