upd is_empty condition

match `location.href` instead of characters that depend on
localizations.