fixed "undefined index"

I may be wrong here, but I went with !empty() here instead of isset()
in case the user sets the key to zero or a blank string.