null check in lookup iterator