Check if inventory contains a specific hash
bool contains(Hash hash) { return invList.any((inv) => inv.hash == hash); }