Added isEmpty method to ObjectExt.js