$collection = collect(['taylor', 'abigail', null])->map(function($name) { return strtoupper($name); }) ->reject(function($name) { return empty($name); });