added an additional check for a defined variable before regex testing on it.  Silences warning
added an additional check for a defined variable before regex testing on it.  Silences warning

LyonsLab/coge,LyonsLab/coge,asherkhb/coge,asherkhb/coge,LyonsLab/coge,asherkhb/coge,LyonsLab/coge,LyonsLab/coge,LyonsLab/coge,LyonsLab/coge,asherkhb/coge,asherkhb/coge,asherkhb/coge,asherkhb/coge,LyonsLab/coge,LyonsLab/coge,asherkhb/coge,asherkhb/coge