if that is needed, then it means that the if condition afterwards is the problem and here I suspect the issue is that your theme is not included in the ``getThemes()`` call