protected function getResult($data)
    {
        if (is_array($data)) {
            header('content-type: application/json');
            return $this->cypher->encode(json_encode($data));
        }

        return $data;
    }