Undefined index error on options array element?

just to be on the safe side use:

if (array_key_exists('no_cat_base', $myoptions) && isset($myoptions['no_cat_base'])){
//do your thing
}