Just to make you hate me, here is one more possible implementation (that I swear I had in mind in the first place, but old age prevented me from remembering that as I got busy typing).

    def sid_collision?(sid)
      !!redis.get(prefixed(sid)).tap do |o|
        on_sid_collision.call(sid) if o && on_sid_collision
      end
    end