twinkle: Simplify if statement