The events.isEmpty() method returns true if the row contains no events.
DayPilot.Row.events.isEmpty()Returns true when the row doesn't contain any events and false otherwise.
const row = dp.rows.find("R1");
const noEvents = row.events.isEmpty();