Should I ask her if she has a boyfriend first?

When l find a girl that I find attractive in the street, is it better to compliment her first and then ask if she has a boyfriend or its better to ask her out directly?

Should I ask her if she has a boyfriend first?
Post Opinion