Simplified two if statements.

Hi Jonas,

Tiny change, I simplified two if statements. Lets keep your awesome code clean ;-)