FR: Check if item/index is enabled in PopupMenu

I have implemented two methods to check if an item or index is enabled in a PopupMenu. It would be nice to have them, or anything that may work in the same way, in JUCE.

This is very helpful for dynamic popups and other purposes.

bool isItemEnabled (int itemID)
    for (auto item : items)
        if (item.itemID == itemID)
            return item.isEnabled;
    return false;
bool isIndexEnabled (int itemIndex)
    return items[itemIndex].isEnabled;