private function findDisposableWorkers()
    {
        $disposableStatusses = array(ChildProcessContainer::STATUS_READY, ChildProcessContainer::STATUS_ALIVE);
        foreach ($this->family as &$child) {

            if (in_array($child->status, $disposableStatusses)) {
                if ($child->getAge() < 10) {
                    //less than ten seconds old keep it alive a bit to let its do its job
                    continue;
                }
                $child->bedTime();
                return true;
            }
        }
        return false;
    }
private function findDisposableWorkers()
    {
        $disposableStatusses = array(ChildProcessContainer::STATUS_READY, ChildProcessContainer::STATUS_ALIVE);
        foreach ($this->family as &$child) {

            if (in_array($child->status, $disposableStatusses)) {
                if ($child->getAge() < 10) {
                    //less than ten seconds old keep it alive a bit to let its do its job
                    continue;
                }
                $child->bedTime();
                return true;
            }
        }
        return false;
    }
private function findDisposableWorkers ( ) { $ disposableStatusses = array ( ChildProcessContainer :: STATUS_READY , ChildProcessContainer :: STATUS_ALIVE ) ; foreach ( $ this -> family as & $ child ) { if ( in_array ( $ child -> status , $ disposableStatusses ) ) { if ( $ child -> getAge ( ) < 10 ) { //less than ten seconds old keep it alive a bit to let its do its job continue ; } $ child -> bedTime ( ) ; return true ; } } return false ; }
Finds disposable workers, if it finds them it returns true

@return boolean
Finds disposable workers if it finds them it returns true