isAttached function

Is a package attached?