How do I detect if the player is not looking at a certain object

So I have a line trace where if the player looks at a certain object then it sets a boolean to true. What I want to do now is have to detect if the player is not looking at that object and if he’s not then it sets the boolean back to false. So how do I do that? Here’s my line trace:

Here is a way to do it