Check if object is facing a point (ignore y axis)

I found a pretty good code here to check if my object is facing another, only issue is, when my object is above the point it doesn’t know. I want it to return true if the object is simply looking at the point’s direction despite being above it

This is what it looks like right now:
if(Vector3.Angle(transform.forward, target - transform.position) < 10f){}

Vector3 direction = target - transform.position ;
direction.y = 0 ;
if(Vector3.Angle(transform.forward, direction ) < 10f)
{
// Do something
}