public function needsHeartbeat()
    {
        if (0 < $this->timeouts['interval'] && \microtime(true) > ($this->timeouts['interval'] + $this->heartbeat - 5)) {
            $this->heartbeat = \microtime(true);

            return true;
        }

        return false;
    }