This is generally the most commonly used inventory system. The above inventory/container system is quite advanced and above all most elaborate system for the job, albeit may be a bit difficult if you don’t know your way around code.
There’s also a simple true and false variables to monitor your inventory items.