Doesn't this cause a warning? `if ( !isset( $array[$key] ) )` please.