Checking if $_FILE isset for an array of file upload metaboxes

Ahh I think I was able to answer this on my own. I created a variable for the $_FILES($pdf_field[‘name’]) array and was able to use those to get the array values. Just need to do some error handling and test out my uploads. If there’s something wrong with handling it this way please let me know.

 //Upload PDF files
    foreach ($meta_box_pdf_uploads['fields'] as $pdf_field) {

        //put file array into a variable
        $pdf = $_FILES[$pdf_field['name']];

        //if array is set and there is no error 
        if(isset($pdf['error']) && $pdf['error'] > 0) {

            //setup error handling based on error code
            wp_die('Error uploading file: Error Number is ' . $pdf['error']);

        } else {  //Passed