How To Check If Object Is Empty In Js