protected function areRunning(array $processes): bool
    {
        foreach ($processes as $process) {
            if ($process->isRunning()) {
                return true;
            }
        }

        return false;
    }
protected function areRunning(array $processes): bool
    {
        foreach ($processes as $process) {
            if ($process->isRunning()) {
                return true;
            }
        }

        return false;
    }
protected function areRunning ( array $ processes ) : bool { foreach ( $ processes as $ process ) { if ( $ process -> isRunning ( ) ) { return true ; } } return false ; }
Determine if any of the processes are running.

@param Process[] $processes
Determine if any of the processes are running .