Array empty

I’m turning this Collection into an Array.

Captura de Tela 2024-05-10 às 12.58.46
Captura de Tela 2024-05-10 às 12.59.20

To get this value:
Captura de Tela 2024-05-10 às 13.00.04

I need this separate value equal to the image.
The problem is when this collection arrives empty, and causes an error in the flow.

How can I solve this problem?

I tried this, but it returns the value as a collection and it can’t be like that, you have to return the separate values.

Captura de Tela 2024-05-10 às 14.28.54

Can someone help me?