he ID is of an invalid type. If it has no ID, raise an error if require_id is True, otherwise return None. ©