public static function toAssoc(array $response)
    {
        $out = [];
        $count = count($response);

        for ($i = 1; $i < $count; $i += 2) {
            $out[$response[$i - 1]] = $response[$i];
        }

        return $out;
    }