I like to stick parens around the condition on a ternary to avoid any order of operations madness:
```
$currency = ($baseCurrency != $fieldMap['currency']['magento']) ? $fieldMap['currency']['magento'] : null;