Does it make sense to add that check in the __init__ for ExcelFile instead?