Be more explicit in the if-statement
Annotate File variables, since it'll return an Abstract handler instead