How To Check For Empty Object In Javascript