This example should probably use `$collection->extract()`.