How To Check If Javascript Object Is Empty