The eval can be replaced with globals()[%s_is_valid' % field](hc)