Add inventory length checks