Make Gui Text only appear based on array

Happy Friday night, friends.

So I figure this has to do with OnGui, but my lack of knowledge holds me back again, and come hoping for guidance. I have a pretty nice inventory script. Only issue is that the gui text assigned to the array will always appear (in the pause menu, where it’s set up) So right from the beginning the player will always know every item / weapon that exists in the game. So what I’d like to do is have the Gui Text for each item only appear once the player actually gets the item. I’m incredibly grateful, and hope to contribute to the community soon so that I’m not just continually asking questions without giving something back. God bless.

//inventory
static var inventoryArray : int[] = [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];
var inventoryText : GameObject;




function Update () {

inventoryText.guiText.text = "Health Potion " + "[" + inventoryArray[0] + "]" + "

" + "Hard Tack " + “[” + inventoryArray[1] + “]” + "
" + "Water " + “[” + inventoryArray[2] + “]” + "
" + "Apple Brew " + “[” + inventoryArray[3] + “]” + "
";

if(Input.GetButton("Stuff"))

if(inventoryArray[0] > 0) {

healthPotion();
}
if(Input.GetButton("Sword Slash"))

if(inventoryArray[1] > 0) {

hardTack();
}
}
//inventoryArray[0]++;
//inventoryArray[1] ++;

function healthPotion ()  {

Playerhealth.curHealth += 15;
inventoryArray[0] -=1;
}

function hardTack ()  {

Playerhunger.curHunger -= 5;
inventoryArray[1] -=1;
}

Solved. Switched from the array to a series of static variables, and used an if statement at each variable for the GUItext.