Add missing braces to if so the most important function actually works

I am a moron, always brace your if's folks!  Fixes #5
This package would really benefit from some tests :(