public function readBoolean()
    {
        try {
            $int = ord($this->getStream()->read(1));

            return ($int === 0) ? false : true;
        } catch (StreamException $e) {
            $this->handleStreamException($e, BinaryStreamAccessException::BOOLEAN);
        }
    }