public static bool SetIfNull<T>(this InArgument<T> inArgument, ActivityContext context, T valueToSet) { if (inArgument == null) return false; if (inArgument.Expression != null) return false; inArgument.Set(context, valueToSet); return true; }