<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def update(self):
 """ Upates the user's SDB inventory Loops through all items on a page and checks for an item that has changed. A changed item is identified as the remove attribute being set to anything greater than 0. It will then update each page accordingly with the changed items. Returns bool - True if successful, False otherwise """

        for x in range(1, self.inventory.pages + 1):
            if self._hasPageChanged(x):
                form = self._updateForm(x)
                form.usePin = True
                pg = form.submit()
                
                # Success redirects to SDB page
                if "Your Safety Deposit Box" in pg.content:
                    return True
                else:
                    logging.getLogger("neolib.shop").exception("Could not verify if SDB inventory was updated.", {'pg': pg})
                    return False