Drupal 7 node form processing cleaner
If you want to inspect the values of a submitted form, I'm afraid you'll have to dig in to a nested array.

However, if you need to check if a file has been uploaded, why don't you make it a required field? And if you have a reason to write your own check, why don't you add a validation function instead of a submit handler?