Same kind of code is also in /usr/lib/YaST2/bin/modify_cupsd_conf (lpstat -h $VALUE -p) and in /usr/lib/YaST2/bin/test_remote_ipp (lpstat -h $SERVER -p) where it is o.k. because it is tested that $VALUE and $SERVER cannot be empty.