public function isAlive()
    {
        $pid = pcntl_waitpid($this->_pid, $status, WNOHANG);
        $this->result = unserialize(trim(socket_read($this->sockets[1], $this->message_length)));
        socket_close($this->sockets[1]);

        return ($pid === 0);
    }