protected function jsonReturn(array $array, $httpCode = 200, $contentType = 'application/json')
    {
        return $this->response->setHeader('Content-Type', $contentType)
            ->setStatusCode($httpCode)
            ->setJsonContent($array);
    }