applied this check to make the module v3.0 friendly

resolves http://bugs.web2project.net/view.php?id=1306