remove duplicate if statement

Nick Reuter<nreuter85@gmail.com>