isset check added to variable setting in setUrl