Fixed warning of NULL being passed to in_array().