*/ class ResponseCollection extends BaseDTOCollection { public static string $base = Response::class; public function hasSuccessResponse(): bool { return $this->first( fn ($response) => '2' === ((string) ($response->status))[0] ) !== null; } }