Removing array dereferencing from artisan commands