I don't think it's that important but standard at Wikia for checking if given extension is enabled is with using method "empty" - e.g.: https://github.com/Wikia/config/blob/dev/CommonExtensions.php#L1548

I'm aware that I might have mis-instructed you on Skype abotu it.