Check if a list contains a number

Is it possible to check if a list contains a certain number in Desmos? If so, how?

Here’s a possible solution:
https://www.desmos.com/geometry/fudihxzcep