def show_legend(graph_options):
    """Return true if the legend should be displayed."""
    if graph_options is None:
        return False
    if "legend" in graph_options:
        return graph_options["legend"]

    return False