Unless I am missing something the whole

```c++
bool isExampleFound = false;

if(!parameter.exampleValue.empty() && !parameter.values.empty())
{
    for (Collection<Value>::iterator it = parameter.values.begin(); it != parameter.values.end(); ++it) {
        ...
    }
}
else
    isExampleFound = true;

if(!isExampleFound)
{
    ...
}
```

can be written as


```

if(!parameter.exampleValue.empty() && !parameter.values.empty())
{
    bool isExampleFound = false;
    for (Collection<Value>::iterator it = parameter.values.begin(); it != parameter.values.end(); ++it) {
        ...
    }

    if(!isExampleFound)
    {
        ...
    }

}

```

correct?