Where was the player when a team-mate last played the ball?
Any part of the head, body or feet counts, and the halfway line itself is not the opponents' half. Law 11 asks about anyone off the field at that same moment, because a player who has left it is still counted, so the two are one question here.