Wouldn't be enough to check if value->Get(key, &result) returns true?