I\'ve seen some PHP statements that go something like
if($variable) {} or
if(function()) {} (if statements that don\'t compare two variables)
When PHP evaluates if statements, it is determining whether or not the contents are true. It considers anything other than 0 to be true, and 0 to be false. This means you can put a function in there that returns anything and based on that it will determine whether or not to execute the contents of the if block.