public static function sendFatal($error, $toSend = null)
    {
        $toJson = ['error' => utf8_encode($error)];
        if (isset($toSend)) {
            $toJson = array_merge($toSend, $toJson);
        }

        exit(json_encode($toJson));
    }