https://tutorial.eyehunts.com/js/javascript-check-if-object-is-empty-example-code/
JavaScript check if object is empty | Example code