Make method to update cart more concise