getDataValue($data, $field); if (!in_array($val, $rule) && $value == '') { return false; } else { return true; } } }