I think this would read much simpler if you would do `if (it != null)`