added check for billing/shipping variables before calling them