/**
* @param {Object|Array} obj
* @return {boolean}
*/
var isEmpty = function (obj) {
if (obj instanceof Object)
return !obj || Object.keys(obj).length === 0
else if (obj instanceof Array)
return !obj || obj.length === 0
};