removed an unnecessary if()

Nothing too important, but I think it makes the code cleaner :-)