Update Inventory.php

shortest and faster variant