When if is just a function