Modify: move check package to function