Refactoring: got rid of a couple of parentheses

Because `if`s and `()`s are evil. Also, the code looks a bit more idiomatic now.
Merge pull request #2 from DNNX/patch-2

Refactoring: got rid of a couple of parentheses