public function hasAlive()
    {
        foreach ($this->processes as $pid => $process) {
            if ($process->isAlive()) {
                return true;
            }
        }

        return false;
    }
public function hasAlive()
    {
        foreach ($this->processes as $pid => $process) {
            if ($process->isAlive()) {
                return true;
            }
        }

        return false;
    }
public function hasAlive ( ) { foreach ( $ this -> processes as $ pid => $ process ) { if ( $ process -> isAlive ( ) ) { return true ; } } return false ; }
Check if any managed processes are still running.

@return bool
Check if any managed processes are still running .