Correct behavior of hasFile on arrays of files.