This check can be rewritten as:

```
if not formatted_input[mod_key].value:
```