I'm ashamed to tell you that I have actually used this logic