Memoization + Logical Or