if isset not working for undefined index, how to fix

this is my code though i am not sure what i am missing to remove the error: