Check if a file exist by passing in a path.
path
static Future<bool> hasFile(path) async => await File(path).exists();