Use instanceof instead of method is_a

Since is_a is a method, it is significantly slower than using instanceof

Following is a perfomance comparison:
http://micro-optimization.com/is_a-vs-instanceof
Merge pull request #164 from iambrosi/no-is_a

Use instanceof instead of method is_a