I'm not sure if it's the right way. {{Wikia::isMainPage()}} checks also redirects and core MW solution doesn't do it. I can see two ways here:
* add unit tests for {{Wikia::isMainPage()}} and change it so it uses {{Title::isMainPage}} plus redirects additionally,
* stay here with {{!Wikia::isMainPage()}}.