How do you tell if a girl likes you but has a boyfriend?

Well u try to become friends with her and then u just look @ all the sighs that she likes u and if that doesn't work the just ask her...