# you can take advantage of the 'get' method to reduce the lookups in the dict or SON object
scheduled_sync_ids = importer.get('scheduled_syncs', None)
if scheduled_sync_ids is not None: