Check If Javascript Object Is Empty