Removed Dead code

Removed useless else blocks.