This is wacky. `is_request_in_microsite` should just be returning `bool(get_configuration())`, and then you wouldn't have to check against `{}` explicitly in this code.