I would like rewrite as
```
std::string api;
if !((*api_iter)->IsType(Value::TYPE_STRING) && (*api_iter)->GetAsString(&api))
  return false;
```