``$this->container->has(sprintf('swiftmailer.mailer.%s', $name))`` is useless a useless condition: the container will always have it (as the ``swiftmailer.mailers`` parameter allows us to know what are the defined mailers)