"There are none at all available" when trying to put multiple items in something

I’ve not used Inform for a couple of years now, sadly, but here’s something from an old project. No doubt I got ideas for it from this forum.

[This is to replace the message "There are none at all available!" when hamper is empty]
Rule for printing a parser error when the latest parser error is the nothing to do error and the player's command includes "from hamper":
	if the hamper is empty:
		say "The hamper is empty." instead.

[This is to replace the message "There are none at all available!" when "get all"]
Rule for printing a parser error when the latest parser error is the nothing to do error and the player's command includes "get all" or the player's command includes "take all":
	say "There is nothing to take here." instead.