Simplify logic around presenting flag

Switch from using if/else operator to using ternary conditional operator