private function resultLocation(Collection $location) { if (!$location->count()) { $this->setError('error'); return $this->view; } $this->view->locations = $location; return $this->view; }