I understand this is a subjective question, so I apologize if it needs to be closed, but I feel like it comes up often enough for me to wonder if there is a general preferen
I actually many of forms possible.
This is not actually how it is written to standards, but this is how I see it:
//if foo is(or exists) if(foo) //if foo is true if(foo == true) //if foo doesn’t exist if(!foo) if foo is false if(foo == false)
Hence I don’t see == false is redundant.