private function getLandmark($type) { $result = array_filter($this->info, function ($landmark) use($type) { return $type === $landmark['type']; }); return array_shift($result)['position']; }