public function getModelsFromResult($modelResult)
    {
        $modelsArray = [];

        if (isset($modelResult['models'])) {
            foreach ($modelResult['models'] as $model) {
                $model = new Model($model);
                $modelsArray[] = $model;
            }
        } else {
            throw new \Exception('Models Not Found');
        }

        return $modelsArray;
    }