The block above can be rewritten like this:

```php
$entity = (new Collection($entity))->first();
```

The advantage, other than having a simple code, is that `current()` may not be the first in the iterator, you would need to call rewind on the iterators manually.