sometimes javascript is so bad that the problem can be illustrated with a simple stackoverflow question https://stackoverflow.com/questions/679915/how-do-i-test-for-an-empty-javascript-object