// start with [ contains a number in between and ends with ]
nodeKey.matches("^\\[\\d+\\]$") &&
// starts with "[0" but is not "[0]" e.g. 0123 is not valid.
// *TODO collapse these two conditions into one with a
// neatly compiled REGEX.*
nodeKey.startsWith("[0") && nodeKey.equals("[0]"),