• if not exists (select 1 from TableA)
      return;

    Should exit the proc at that point, if zero rows are found.