The second half of this could be:
```php
Util::ensure(1, count($value), "Parameter '{$name}' is not expected to be an array, but array given");
$results[$name] = $value[0];
```

If you don't do that, at least use a `===` instead of `==` on 209 - that's more performant if I'm remembering correctly.