Check If Variable Is Empty Object Javascript Methods For Querying