How to check if inventory is empty.

Hello! I would like to know if there is any way to check if the inventory is empty or not.  The reason I would like to be able to check is that I plan to design a locked door which the player can only pass through if they are not carrying any items, weapons, armours etc., i.e. an empty inventory.  Doing it by variables and conditional branches is a bit time consuming, so I would like to know if there's an easier way.  

Please let me know if there's something unclear that you need to know.
If I'm not wrong

$game_party.items.size == 0As an script condition in your event
any items, weapons, armours
 Use all_items instead of items

Code:
$game_party.all_items.empty?
Thank you both for the answers! They all worked  🙂

Original thread: https://forums.rpgmakerweb.com/threads/how-to-check-if-inventory-is-empty.44121/