Modified if-statement to reflect what was originally meant
Merge pull request #534 from svisser/patch-1

Modified if-statement to reflect what was originally meant