Inventory System in Mainmenu

Here the “for each loop” Gives a error : Accessed None!