Change this if statement to the following, as we only want to return false if we found no array KV:

    if (hasValue == null) {
        ptr.set(ByteUtil.EMPTY_BYTE_ARRAY);
    }