diff --git a/src/Reminder.php b/src/Reminder.php
index a3eda414049572378a4365180cdd0fb8dd0f553f..bf28dd1f9a1226e610c044190b004dadc2681840 100644
--- a/src/Reminder.php
+++ b/src/Reminder.php
@@ -7,10 +7,8 @@ class Reminder {
 	private $logo_url = 'logo-url';
 
 	public function __construct() {
-		if ( function_exists( 'add_action' ) ) {
-			add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_reminder_script' ) );
-			add_action( 'admin_footer', array( $this, 'display_html_element' ) );
-		}
+		add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_reminder_script' ) );
+		add_action( 'admin_footer', array( $this, 'display_html_element' ) );
 	}
 
 	public function enqueue_reminder_script() {
@@ -48,4 +46,6 @@ class Reminder {
 
 }
 
-new Reminder();
+if ( function_exists( 'add_action' ) ) {
+	new Reminder();
+}