Check to see if $this->lines->data is set

Not all invoices from Stripe have Invoice Items and/or Subscriptions, will give error of Invalid argument supplied for foreach().