If `!('passphrase' in key)` then just `key.passphrase` is equivalent to `key.passphrase || undefined` - unless I'm misunderstanding what you mean.