How To Check If Array Of Objects Properties Are Empty In Javascript