I have a script which pulls data from a defined tab name 'Master' in Google sheet, which is then sending an email triggering at a specific time. 

My problem is I don't want script to send blank email if the table in 'Master' is empty. Script should stop sending email. 

Otherwise keeps triggering email on mentioned time.
Can anyone please share their insight on this.

```
function sendEmail() {
  var ss = SpreadsheetApp.getActiveSpreadsheet();
  var sheet = ss.getSheetByName("Master");
  var range = sheet.getDataRange();
  var recipient = 'email@gmail.com'
  var subject = 'Stock Report'
  var date = Utilities.formatDate(new Date(), "GMT+1", "dd/MM/yyyy")
  var schedRange = sheet.getRange("A1:L21"); 

  var body = '<div style="text-align:center;display: inline-block;font-family: arial,sans,sans-serif">'
  body += '<H1>'+ 'Low Stock Report ' +'</H1>';
  body += '<H2>'
  body += getHtmlTable(schedRange);
  body += '</div>'; 
  GmailApp.sendEmail(recipient, subject, "Requires HTML", {htmlBody:body}) 
  //End sendNotification

}

```