if (%foo) { # %foo has at least one key } else { # %foo has no keys } #### if (!!%foo) { ... } #### if (scalar %foo) { ... } #### if (0+%foo) { ... }
## if (!!%foo) { ... } ##
## if (scalar %foo) { ... } ##
## if (0+%foo) { ... }