if payload.get('subject') is not None and payload['subject'].get('_id') is not None: