You can check if a value or string exists in an array using the Contains method from an array.
Below is a simple example:
$languages = "Java","PHP","GO",".net"
$languages.contains("PHP"); # Output: True
$languages.contains("php"); # Output: False
$languages.contains("node.js") # Output: False