var verticalMax = Math.max(Y.GroupUtils.valueOr(terminals["left"], []).length, Y.GroupUtils.valueOr(terminals["right"], []).length);