Add an conditional assignment problem
Solved problem using the ||= conditional assignment fot search