private function isReady($currentTicks) { return count($this->tasks) > 0 and $this->queue->current()->getNextRun() <= $currentTicks; }