Move the extra check out of hasFormatting