final public function getError($i = null, $toString = true)
    {

        // Find the error
        if ($i === null) {
            // Default, return the last message
            $error = end(self::$errors);
        } else
            if (!array_key_exists($i, self::$errors)) {
                // If $i has been specified but does not exist, return false
                return false;
            } else {
                $error = self::$errors[$i];
            }

        return $error;
    }