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?
The isset() check needs to be removed. The variable is set, but might be null or false.