Why is the “stat fps” command a toggle instead of a visibility set?

    const bool bShowingStat = ViewportClient->IsStatEnabled(*StatName);
    if (!bShowingStat)
    {
        GEngine->SetEngineStat(GetWorld(), ViewportClient, *StatName, true/*false*/);
    }

I realized that I can code like this
But is this the only way?