[UPDATE] Use intern global variable instead of using the PHP $GLOBALS
variable