Added function isPlainObject.