Correct check for File subclass