event_log_empty
if (!log || event_log_empty(log))
for (i = 0; i < ret_limit && !event_log_empty(log); i++) {
if (!event_log_empty(log))