-if (!isExtensionActive('bonus')) $numDepths += 1;
-if (isExtensionInstalledAndNewer('bonus', '0.2.2')) $numDepths += 6;
-if (isExtensionInstalledAndNewer('bonus', '0.4.4')) $numDepths += 4;
+if (isExtensionActive('bonus')) {
+ // Extension ext-bonus is there, okay
+ if (isExtensionInstalledAndNewer('bonus', '0.2.2')) $numDepths += 6;
+ if (isExtensionInstalledAndNewer('bonus', '0.4.4')) $numDepths += 4;
+} else {
+ // Not installed ext-bonus
+ $numDepths += 1;
+}