There is a lot of type checking in this code. Maybe it is better to rely on duck typing
There is a lot of type checking in this code. Maybe it is better to rely on duck typing