Function conditionals ignore errors