I don't think you really need anywilds boolean.. (or anyWildcards())
If no wilds expanded remains true.
So you just need to test isExpanded()