Update README.md and add InstanceOf check