private static void ValidatePlayer(Player player, GamingGroupInvitation invitation) { if (player == null) { throw new EntityDoesNotExistException(typeof(Player), invitation.PlayerId); } } }