Categories Module - Fixing syntax error in J3x override and adding new configuration wrightNavClass

I think this if is not correct
I would understand it has to do the opposite:

$wrightNavClass = (isset($wrightNavClass) ? ' nav nav-list' : '');