1    def searchKey(self, searchItem):
2        found = False
3        if self.isEmpty() is not True:
4            current = self.root
5            while current and found is False:
6                if current.key == searchItem:
7                    found = True
8                elif searchItem < current.key:
9                    current = current.left
10               else:
11                   current = current.right
12       return found