Need help debugging undefined index.

I am currently debugging a plugin and get an error of undefined index on this line of code.

if(($tmp['chkbox1']=='on')||(!is_array($tmp))) {