public function formatArrayModel(Model\ArrayModel $model) { return $this->encode($model->getData() ?: new stdClass()); }