I think it is. If the if statement evaluates to false, memo will be nil on the next iteration.