You can't have an optional 1st parameter and a required 2nd

Since the function just returns false if $container_guid isn't set, making them both optional wouldn't do anything. The real fix is probably to switch the argument order, but that is a bigger change.