return early on failure. so if (gelfSender == null) { return gelfSender; }