If the string is empty, performs an action.
Future<T>? ifEmpty<T>(Future<T> Function() action) => isEmptyOrNull ? action() : null;