public function export() { if ($this->payload instanceof SearchResults) { return $this->payload->getResults(); } else { return $this->payload; } }