if var == true {...}
or (and I have actually seen this) if (<expression> == true) {
return true;
} else {
return false;
}
I sometimes think that simply giving those 5 lines to a person and observing if they make a face like you've handed them a bucket full of day-old fish is a better test for programming aptitude than anything.