This should be re-written to:

```php
$possibleAliases = (is_object($item->expression))
    ? array_keys($this->rsm->fieldMappings, $item->expression->field)
    : array_keys($this->rsm->scalarMappings, $item->expression);
```