Removed an unnecessary if statement.