Updated nameserver check to check for array