def add_item(self, item):
		'''insert new portal menu item if route is not set'''
		if not item.get('route') in [d.route for d in self.get('menu', [])]:
			item['enabled'] = 1
			self.append('menu', item)
			return True
dataset/ETHPy150Open frappe/frappe/frappe/website/doctype/portal_settings/portal_settings.py/PortalSettings.add_item/original