Condition To Check Empty Object In Javascript