Fix comment type and reverse ternary condition