Move `$strFramework` inside the if condition