Fix structure error: if is a function