Added a public method to check if the notification is active.