check with isset if a SERVER variable is set before use

avoid php warning