Better instanceof check
2.0.1