When I went to Spain I did it solo, it's fine. The pickpocket thing is a little overblown, but just be aware and present yourself as aware and you'll be fine. No wallets in back pockets and keep your hand in your pocket that has your wallet in it on the metro.
Also, when the ladies try to hand you sprigs of whatever it is, don't take it