public function isBelowMaxUsers($domain) { /* Get the maximum number of users for this domain. */ $max_users = $this->getDomainMaxUsers($domain); if (!$max_users) { /* No maximum. */ return true; } /* Get the current number of users. */ return $this->getDomainNumUsers($domain) < $max_users; }