`iPytIFace` check could be dragged out to the outer if, so that it says:

```
if (iPtyIFace && !cb->text().isEmpty()) {
    ...
}
```