Add isObject() function.