The DayPilot.Row.events.isEmpty method returns true if there are no events in the row.
DayPilot.Row.events.isEmpty()
boolean
var noEvents = dp.rows.find("R1").events.isEmpty();