<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _add_title(hist: HistogramBase, vega: dict, kwargs: dict):
 """Display plot title if available."""

    title = kwargs.pop("title", hist.title)
    if title:
        vega["title"] = {
            "text": title
        }