unset only if function exist