Uses isinstance method to be more cohesive
Merge pull request #86 from berinhard/topic/cohesive-instance-check

Uses isinstance method to be more cohesive