IsFileError should be its own function.