You appear to have changed all of the $chk_cat15 to $chk_cat409 except one:
Code:
   $chk_cat15 = $_SESSION['cart']->in_cart_check('master_categories_id','409');