Remove useless if statement