Check for existence using `exists` instead of `get`

Trying to `get` a sorted set results in an `Operation against a key holding the wrong kind of value` error.