Using getNewNode and null checking. It's cleaner. Thanks.