code: function(oTable) {
  			var oBinding = oTable.getBinding("rows");
  			var iTotalRowCount = oTable._getTotalRowCount();
  			var bHasData = iTotalRowCount > 0;
  
  			if (oBinding && oBinding.providesGrandTotal) { // Analytical Binding
  				var bHasTotal = oBinding.providesGrandTotal() && oBinding.hasTotaledMeasures();
  				bHasData = (bHasTotal && iTotalRowCount > 1) || (!bHasTotal && iTotalRowCount > 0);
  			}
  
  			return bHasData;
  		}
docs: Returns whether the table currently has data.
  
  @param {sap.ui.table.Table} oTable Instance of the table.
  @returns {boolean} Whether the table has data.