Checking if a product ID has taxonomy term attached not working with has_term

Checking if a product ID has taxonomy term attached not working with has_term