Perhaps use a more positive logic?

```python
for key, value in directives.items():
    if value:
        self.FILE.write( '\n' + prefix + ' ' + key + connector + value )
    else:
        self.FILE.write( '\n' + prefix + ' ' + key )
```