!Object.keys(myObject).length
https://coderwall.com/p/_g3x9q/how-to-check-if-javascript-object-is-emptyjavascript