coding style
ensure $href is string