Why check and not just strip `"\r"`?