added field_visible() helper function