By switching the above to calculating the files we don't need this check