Prevent Undefined index Notice

This prevents 'Undefined index' notices from being generated.