prevent PHP Notice: Undefined index
fix php notices