static bool isMediaExists(String? filePath) { if (filePath == null || filePath.isEmpty) { return false; } File file = File(filePath); return file.existsSync(); }