TypeError thrown

array_intersect_key(): Argument #1 ($array) must be of type array, false given