simplifying the if conditions
Merge pull request #10 from otaviojava/redudant-if

simplifying the if conditions