Add a convenience function game:has_item().
Use game:has_item() when appropriate.
Implementing the map pause submenu in Lua.