private function failedCompletely(array $response, array $interests)
    {
        $numberOfInterests = count($interests);
        $numberOfFailures = 0;

        foreach ($response as $item) {
            if ($item['status'] === 'error') {
                $numberOfFailures++;
            }
        }

        return $numberOfFailures === $numberOfInterests;
    }
private function failedCompletely(array $response, array $interests)
    {
        $numberOfInterests = count($interests);
        $numberOfFailures = 0;

        foreach ($response as $item) {
            if ($item['status'] === 'error') {
                $numberOfFailures++;
            }
        }

        return $numberOfFailures === $numberOfInterests;
    }
private function failedCompletely ( array $ response , array $ interests ) { $ numberOfInterests = count ( $ interests ) ; $ numberOfFailures = 0 ; foreach ( $ response as $ item ) { if ( $ item [ 'status' ] === 'error' ) { $ numberOfFailures ++ ; } } return $ numberOfFailures === $ numberOfInterests ; }
Determines if the request we sent has failed completely

@param array $response
@param array $interests

@return bool
Determines if the request we sent has failed completely