fixing undefined index notice

minor fix to remove undefined index notices from WP_DEBUG