Use `&&` and `||` instead of `and` and `or`

Signed-off-by: crynobone <crynobone@gmail.com>