Requirement: check if the array is empty using Power Automate.
Take a SharePoint list “Product List”

Power automate if array is empty
In Power Automate, Click on +create from Home Page , select instant flow, Provide name to the flow, select manually trigger a flow , then click on Create Button

How Power automate if array is empty
Select Get items action, then provide the site address, list name and in Filter query add the query i.e. Rating gt ‘4’.

Microsoft Flow if array is empty
Next, check the above array if the items are empty or not, so click on the next step and select compose action. Then in input write the below expression:
if(empty(body('Get_items')?['value']),true,false)

MS Flow if an array is empty
Now click on save and run the flow and can see there is no item above 5 ratings so get item body value is empty, it returns true.

How MS Flow if array is empty