Fixed Logical Operators

Logical operators `and`, `or` don't have the same precedence as `&&` and `||`. This could lead to unexpected behaviour later down the line.

Also, it's difficult to run tests against this properly. Are you guys considering adding unit tests?