Fix in_array warning when subdomains is null