private function setHeadersFrom(array $rows) { $first = reset($rows); if (is_array($first)) { $this->headers = array_keys($first); } }