static function getConnected() { if (!isset(self::$mandrill)) { try { require_once plugin_dir_path(__FILE__) . '/lib/mandrill.class.php'; self::$mandrill = new Mandrill(self::getAPIKey()); } catch (Exception $e) { } } }