Do you need to check for 'packages'? You are already checking for `File`