diff --git a/app/controllers/course/statusgroups.php b/app/controllers/course/statusgroups.php
index 5536ab90d5f4f49bc9793284208670633f52a3e3..747feae6aac2e979d13a8de74fc92d08413cff20 100644
--- a/app/controllers/course/statusgroups.php
+++ b/app/controllers/course/statusgroups.php
@@ -310,7 +310,7 @@ class Course_StatusgroupsController extends AuthenticatedController
             $this->group = Statusgruppen::find($group_id);
             $this->members = [];
             $this->invisible = 0;
-            if (count($this->group->members) > 0) {
+            if (!empty($this->group->members)) {
                 //Note: $members consists of StatusgruppeUser objects here.
                 $members = $this->sortMembers($this->group->members);
                 foreach ($members as $member) {