Dead code inside "if", please remove