Fix check on is_notification_sent