just `if record` is simpler IMO