Change class conditional to use instanceof
Merge pull request #3 from streber2/master

Change class conditional to use instanceof