It doesn't need to be a negative, condescending thing. Taking the time to ask "What problem are you trying to solve?" can alleviate quite a bit of frustration and wasted time. It's a simple question. It's not assuming they don't really know what they want or shaming them—You're trying to better understand the problem they're solving so you can give them a better, more holistic solution.