Updated checking for module variable