Hawke sent me a pm to get some help with a bit of script that wasn't working. It boiled down to $if(other code returning a boolean value), where the $if() was redundant. However, $if() requires a minimum of 2 arguments, so it broke.
The cleanest solution is, of course, to remove the $if(). However, $if should not break if it's given $if(TRUE) or $if(FALSE); it should just return TRUE or FALSE, depending on that single argument's boolean value.