Set cartItems initially to an empty array, don't get property directly