"No spells learned yet" message

Hi everything,
pretty sure the titles says it all: is there a way to put a message "no spells learned yet" in "Spells" command during battle?
I remember reading a solution to this some times ago, but I can't remember/find it.
that would require a plugin, because by default only skills will be shown there

Original thread: https://forums.rpgmakerweb.com/threads/no-spells-learned-yet-message.164540/