[algorithms][is_valid] remove commented variable names