Added utility method isEmptyObject.