Handle empty Redis sets without a warning from array_key_exists

Change-Id: I0d26700108e1b0be792b6373f117853a57cbbce4