def _should_process_smses(): switch = Switch.get(PROCESS_SMSES_SWITCH) if not switch.pk: # To remain backwards compatible, we will process smses if the switch hasn't been set at all return True return switch.active