EPD-158: Properly detect if an notification should be sent