Fixing isObject

Using the constructor of Object.