spacing for style consistency.

`key is not None and not len(key)` looks simpler, but the latter is up for debate.