public function findDriver(string $name): ?array
    {
        return $this->getDrivers()->first(function ($item) use ($name) {
            return $item['name'] === $name;
        });
    }
public function findDriver(string $name): ?array
    {
        return $this->getDrivers()->first(function ($item) use ($name) {
            return $item['name'] === $name;
        });
    }
public function findDriver ( string $ name ) : ? array { return $ this -> getDrivers ( ) -> first ( function ( $ item ) use ( $ name ) { return $ item [ 'name' ] === $ name ; } ) ; }
Find driver by name.

@param string $name

@return array|null
Find driver by name .