protected function checkEveryChild(array $features)
    {
        foreach ($features as $feature) {
            $result = is_array($feature) ? $this->checkEveryChild($feature) : $feature;

            if (!$result) {
                return false;
            }
        }

        return true;
    }
protected function checkEveryChild(array $features)
    {
        foreach ($features as $feature) {
            $result = is_array($feature) ? $this->checkEveryChild($feature) : $feature;

            if (!$result) {
                return false;
            }
        }

        return true;
    }
protected function checkEveryChild ( array $ features ) { foreach ( $ features as $ feature ) { $ result = is_array ( $ feature ) ? $ this -> checkEveryChild ( $ feature ) : $ feature ; if ( ! $ result ) { return false ; } } return true ; }
Checks every child of the array

Returns true if every child and sub-child is true

@param array $features
@return bool
Checks every child of the array