simple if then with boolean