Group Checkboxes Select All / None Design’s best practices

What would be more inline with best practices for the select all / select none option on group checkboxes?

enter image description here

OR

enter image description here