Microsites alongside Theme

The logic is to first check that the request is not a microsite-request before choosing the branding templates from the theme.
My original suggestion to do this was just that while Python will treat empty data as `False`, returning an empty dictionary from a function that looks like it should be returning either `True` or `False` is strange. By casting inside the function, you make the return value of the function more obviously a boolean.