3 ms·the idiomatic way: if (( ${#array[@]} )); thenby Hello71 8y agothe idiomatic way: if (( ${#array[@]} )); thenshmerl 8y agoI prefer not to use implicit boolean conversions. It's also less readable.