removes extra 'if'
Merge pull request #889 from AndyDangerous/patch-3

removes extra 'if'