The logic seems reversed. Do you mean if (!IsFeatureEnabled()) instead?