Removed an unnecessary if-statement.

Not sure if it had any purpose. Maybe to make it more clear?

Just a suggestion of something I noticed.