My problem is actually checking if a JSON array has a specific number in it or not, so I was thinking that searching for an index would resolve it, but I couldn't find a straight forward way of doing it.
I'm able to achieve it through javascript, but I'd rather use blocks.