Add flash_bag exist check in notification template