fix check for empty address