Js Check If Dictionary Empty