This check and others (e.g. your num subfiles in this method), should be performed by IDFUhelper that you call..