1Testing $var == true is the same than just testing $var.
2
3You can read this SO question on comparison operator. You can also read PHP manual on this topic.
4
5Note: a variable does not return true. It is true, or it evaluates to true. However, a function returns true.