TypeError thrown

strpos(): Argument #1 ($haystack) must be of type string, array given