diff --git a/plugins/content_types/user_context/profile_fields.inc b/plugins/content_types/user_context/profile_fields.inc
index 459ee70..e75fd08 100644
--- a/plugins/content_types/user_context/profile_fields.inc
+++ b/plugins/content_types/user_context/profile_fields.inc
@@ -1,6 +1,12 @@
 <?php
 
-if (module_exists('profile') && !is_null(profile_categories())) {
+if (module_exists('profile') &&
+    (
+      (function_exists('profile_user_categories') && !is_null(profile_user_categories())) ||
+      (function_exists('profile_categories') && !is_null(profile_categories()))
+    )
+  ) {
+
   /**
    * Plugins are described by creating a $plugin array which will be used
    * by the system that includes this file.
