you can write it this way ( I expect that it is string values, so no booleans )
```
"device"         => card["device"] || card["model"] || "",
```