Bundles\S18\Helper: replaced direct access to global vars with a more careful access to $GLOBALS