diff --git a/mobile_tools.module b/mobile_tools.module
index ef8f3b3..bb67671 100755
--- a/mobile_tools.module
+++ b/mobile_tools.module
@@ -242,7 +242,7 @@ function mobile_tools_init(){
   /**
    * We set the context
    */
-   if(module_exists('context')){
+   if(function_exists('context_get_plugin')){
       $plugin = context_get_plugin('condition', 'mobile');
       if(is_object($plugin)){
         $device = mobile_tools_get_device();
@@ -867,4 +867,4 @@ function mobile_tools_views_check_access($device, $perms){
     }
   }
   return $access;
-}
\ No newline at end of file
+}
