Removed one unused line.
Removed unnecessary statement in condition.