Script call - check/eval Armor Type equiped in Armor Equipment types

Hello
I am using system, where actor visual appearance changes based on equipment (for field and for battler as well).
Notthing too hard or fancy - just 4 templates for each actor - purely based on Armor slot type of armor used.
I have 4 (well 5 with naked version 😛) basic types of armor.
Armor types: (0 nothing equiped) 1 Clothing , 2 Light armor, 3 medium armor, 4 heavy armor

I need script call to check which type an actor has equipped on armor slot and change his appearance by that.

I tested it for weapon and it works really nice:
if (($gameActors.actor(ActorID).isWtypeEquipped(WeaponTypeID)) === true)

The only thing - I dont know how call such eval for Armor slot.
So I am looking for something like:
gameActors.actor(ActorID).ArmorSlot(ArmorSlotID).isAtypeEquipped(atypeId)
Thank you.
Moved to: JavaScript/Plugin Support

Original thread: https://forums.rpgmakerweb.com/threads/script-call-check-eval-armor-type-equiped-in-armor-equipment-types.74551/