Doesn't make sense. It should be:
```python
if files:
```

Or since number of files is used on the next line:
```python
number_of_files = len(files)
if number_of_files:
    self.window.set_statusbar_message(N_("Adding %d files from '%s' ..."), number_of_files, root)