Js Array Check If Object Is Empty