code: protected function pickRows($data)
      {
          $rows = [];
          if (ArrayUtils::has($data, 'rows')) {
              $rows = ArrayUtils::get($data, 'rows', []);
          } else if (ArrayUtils::has($data, 'data')) {
              $rows = ArrayUtils::get($data, 'data', []);
          }
  
          return $rows;
      }
docs: Pick the "rows" (items) out of the raw data
  
  @param $data
  
  @return array