Share code b/w (un)bound if helpers

Also, got rid of unnecessary anonymous function.
win win win win win win win win
refactored EVEN MOAR

Might have been optimized away any but why not
remove the needless assignment ourselves.

(you should obviously squash deez shitz)
Merge pull request #1 from machty/unboundif

Share code b/w (un)bound if helpers