N8n Google Sheets empty sheet

I am using n8n with a Google Sheets node. I want to check if a sheet is empty, and if it is, append a new row with request_id = RQ001.

The problem is: if the sheet is empty, the Google Sheets node does not return any data, so the next node in the workflow does not run. How can I make the workflow continue and append a row even when the sheet is empty?

From node settings, enable Always Output Data option. This way, even if the node doesn’t output anything, the workflow will continue.

Minimally, you can attach an IF statement: IF {{ $json }} IS EMPTY.