Nit: use `if (is == null) return;` instead.