direct check for empty cache Object.keys(obj).length