protected override bool SetResultCore(PhysicalConnection connection, Message message, RawResult result)
            {
                if (result.IsNull)
                {
                    SetResult(message, false); // lots of ops return (nil) when they mean "no"
                    return(true);
                }
                switch (result.Type)
                {
                case ResultType.SimpleString:
                    if (result.IsEqual(RedisLiterals.BytesOK))
                    {
                        SetResult(message, true);
                    }
                    else
                    {
                        SetResult(message, result.GetBoolean());
                    }
                    return(true);

                case ResultType.Integer:
                case ResultType.BulkString:
                    SetResult(message, result.GetBoolean());
                    return(true);

                case ResultType.MultiBulk:
                    var items = result.GetItems();
                    if (items.Length == 1)
                    {     // treat an array of 1 like a single reply (for example, SCRIPT EXISTS)
                        SetResult(message, items[0].GetBoolean());
                        return(true);
                    }
                    break;
                }
                return(false);
            }