Its not an if statement, its a if then else.
check at bonfire/helpers/application_helper.php line 466