Thanks for the post.
The errors indicate that there might be some syntax errors on the code above these lines. Your functions could be expecting some array values but currently the variables are passing empty strings.
To solve this, it is highly recommended to debug your code line by line to identify the culprit:
$value = get_field('field_name');
var_dump( $value );