Invoke a method (if GUI hook is required) and get its return value
if (object.InvokeRequired) return (bool)object.Invoke(new Func<bool>(() => FunctionName(optionalParameter)));