`if not getattr(request, 'API', False):`