You can check if the actor's party index is higher than the maximum battle members allowed:
Code:
$game_actors[ID].index >= $game_party.max_battle_members
But do note, the moment you put that actor into the active battle members party, he/she will no longer be "reserved". Therefore, your idea will most probably not work.
From the sound of it, you use a custom formation menu?
Otherwise I see no reason why would you use a switch for disabling/enabling the formation "menu" instead of simply using the Change Formation Access event command for it.
Aside from this, simply hiding the actors at the main menu screen won't help you with disabling skill usage. The player can still toggle between actors in the other menus, the skill menu included, so he will still be able to use skills from there. You would need to make the actor swap account for active battle members only. Fortunately, that is not hard to do at all, assuming you use the default menus.
Spoiler
Code:
class Game_Party < Game_Unit
def menu_actor_next
index = battle_members.index(menu_actor) || -1
index = (index + 1) % battle_members.size
self.menu_actor = battle_members[index]
end
def menu_actor_prev
index = battle_members.index(menu_actor) || 1
index = (index + battle_members.size - 1) % battle_members.size
self.menu_actor = battle_members[index]
end
end
Insert this script below the default scripts. This will prevent the actor swap to select reserve members on all default menus.
Using this little script and disabling/enabling the formation access at the right places, you should be able to do what you want (if I understood what you want correctly, that is),