Deleted unnecessary if statements

Deleted unnecessary if statements