issue #27 fixing wrong conditons, when you typed in only url in settings variables where not added to output code