Improve AlignType condition

This may not make any difference in runtime, but make the code easier
to understand