The if function can return another function as its result