bug fix when empty dataobjects, new routine isempty for dataobject