hah, I meant this whole block can be DRYd up, not just the if statement :)