The function always returns a valid object. Let the return type reflect that, and remove some null checks.