For now, those methods should work on both Bash and ZSH. I am planning on adding a compatibility matrix, but this might require shifting away from markdown. See specific-shells-notes.md .
Reminders:
[[ -z $VAR ]]: Return 0 (true) if string is nonzero
*: Any number of any character. See shell globbing