May I use variable / switch number 0 freely?

Variable numbers start from 1, however, I found that they are internally stored in a 0-indexed array (rpg_objects.js, Game_Variables)

My question is, may I assume that variable numeber 0 is unused and use it freely, or is it used internally by RPG Maker and may assigning arbitrary values to it through scripts lead to problems?
$gameSwitches.setValue(0, true);

That won't do anything, because the setValue method checks if the number is bigger than 0. You can use it if you set the value directly:

$gameSwitches._data[0] = true;

Spoiler
butwhy.jpg.d7f23f91fbaf010bcf47d7f590d38873.jpg
@Hudell
he is asking about $gameVariables, not $gameSwitches, but i got a laugh anyway, haha.

@kmph
the data at index 0 is empty; technically, you could use $gameVariables[0] however you see fit, but honestly it just wouldn't be practical; every reference would need to be explicit via script call. i recommend you leave it be for consistency and practicality.
he is asking about $gameVariables, not $gameSwitches, but i got a laugh anyway, haha.

might want to check the subject line again 😉 Also, $gameVariables[0] would throw an error in MV as it is not an array, but a class that has an array as one of its properties. These two don't work in MV the way they worked in Ace.

Variables and switches are set up the same way - they're just arrays; one contains numbers and the other contains boolean values. You can use Hudell's method to access element 0 of either array and bypass the default checks that are done when calling the .setValue functions.
Variable number 0 is unused and its' value is null. This is how the RPG maker handles many arrays, to make sure the numbers are matching.
In fact it handles like this even items, equips, weapons, actor names... And even items in your inventory, even though that's not necessarily an array.

Original thread: https://forums.rpgmakerweb.com/threads/may-i-use-variable-switch-number-0-freely.84143/