<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def suggest(self, query):
 """ Gather suggestions based on the provided title or None if no suggestions found Args: query (str):
 Page title Returns: String or None: Suggested page title or **None** if no \ suggestion found """

        res, suggest = self.search(query, results=1, suggestion=True)
        try:
            title = suggest or res[0]
        except IndexError:  # page doesn't exist
            title = None
        return title