The ConnectionManagerId class actually has a hashCode and equals since it's a case class, so you can just do `if (connectionsById.contains(remoteConnectionManagerId)`