private function computeHealthForAllTargets($resource)
    {
        return $resource->targets->reduce(function ($carry, $target) {
            return $target->result->healthy;
        }, true);
    }
private function computeHealthForAllTargets($resource)
    {
        return $resource->targets->reduce(function ($carry, $target) {
            return $target->result->healthy;
        }, true);
    }
private function computeHealthForAllTargets ( $ resource ) { return $ resource -> targets -> reduce ( function ( $ carry , $ target ) { return $ target -> result -> healthy ; } , true ) ; }
Compute health for targets.

@param $resource
@return bool
Compute health for targets .