We can support a limited subset of list.length comparisons with the intrinsic IsPresent variables:
{
"IsPresent: true,
"Variable": "$.list[0]"
}
{
"IsPresent: false,
"Variable": "$.list[0]"
}
{
"And": [
{
"IsPresent: true,
"Variable": "$.list[0]"
},
{
"IsPresent: false,
"Variable": "$.list[1]"
},
]