Unnecessary if statement removed