added empty object check to data history.