fix approach to removing data via setting to null; local data will always maintain empty {} object; setting data=null and data={} achieves the same thing, which is to remove data from the remote side