check isset before using server variable

This is failing on console commands because there is not server software set