instanceof check
Merge pull request #11 from Raynos/patch-1

instanceof check