Refactor isModLoaded test for Planets mod component.