Change If Statement

Combined two if statements to a single if else
Merge pull request #9 from grimd34th/patch-3

Change If Statement