def _is_notify_empty(notify_db):
 if (not notify_db):
  return True
 return (not (notify_db.on_complete or notify_db.on_success or notify_db.on_failure))

def _is_notify_empty ( notify_db ) : if ( not notify_db ) : return True return ( not ( notify_db . on_complete or notify_db . on_success or notify_db . on_failure ) )
notify_db is considered to be empty if notify_db is none and neither of on_complete .