simplifying wrapping @if directives

don't need to evaluate if the $var == true