throw error if R list does not has names