Corrected check for item restoration success