ArgumentCountError thrown

in_array() expects at least 2 arguments, 1 given