diff --git a/db/migrations/1.271_room_management_migration.php b/db/migrations/1.271_room_management_migration.php
index 8edb1903a094edfe892b8d03dd81fe0ea9cbb1c6..93f405c685a8b20c02482e09d095d678d3c6e9a5 100644
--- a/db/migrations/1.271_room_management_migration.php
+++ b/db/migrations/1.271_room_management_migration.php
@@ -1247,7 +1247,7 @@ class RoomManagementMigration extends Migration
         //using the property group regex. But they can also be created
         //by explicitly defining a name and the properties that are included
         //in the group.
-        if (count($GLOBALS['RESOURCE_MIGRATION_NEW_PROPERTY_GROUP_LIST'])) {
+        if (isset($GLOBALS['RESOURCE_MIGRATION_NEW_PROPERTY_GROUP_LIST'])) {
             $property_group_list = $GLOBALS['RESOURCE_MIGRATION_NEW_PROPERTY_GROUP_LIST'];
 
             $add_properties_stmt = $db->prepare(