Check for empty url
Simplify popup command