Remove unneeded var check.