public function getEngineTime() { $data = $this->getData(); if (!isset($data['took'])) { throw new NotFoundException('Unable to find the field [took]from the response'); } return $data['took']; }