Simple script (ES5) to check if an object is emtpy
1Object.getOwnPropertyNames({}).length === 0;
Created on 9/5/2018