I'd flip the conditional – you can return early if there is no file and save a level of nesting.