public function checkIfReady()
{
if (!$this->attrs->paramsDone || !$this->attrs->inputDone) {
return false;
}
if (isset($this->appInstance->passphrase)) {
if (!isset($this->attrs->server['PASSPHRASE']) || $this->appInstance->passphrase !== $this->attrs->server['PASSPHRASE']) {
$this->finish();
}
return false;
}
if ($this->attrs->input->isFrozen()) {
return false;
}
if ($this->sleepTime === 0) {
$this->wakeup();
}
return true;
}