Why not:
```php
if (isset($indexInfo['aliases'][$aliasName])) {}