Check whether for() is magicalized or not
is_magicalized(envir = parent.frame())
envir
environment
TRUE if for() is magicalized.