```
if ($configs.Length -gt 0) {
    `$first = $configs[0]`
}
```

Something like that