Js Check If Dictionary Is Empty