         self.options = options
         self.socketURL = socketURL
         
-        if ((socketURL.absoluteString?.hasPrefix("https://")) != nil) {
+        if socketURL.absoluteString?.hasPrefix("https://") ?? false {
             self.options.insertIgnore(.secure(true))
         }
         

        let handler = SocketEventHandler(event: event, id: UUID(), callback: callback)
        handlers.append(handler)

        return handler.id as UUID
    }

    /// Adds a single-use handler for an event.


        handlers.append(handler)

        return handler.id
    }

    /// Adds a handler that will be called on every event.
