I have a function within my PHP project which has some specific params..
 $user_sequence = $user['user_sequence'];
 if ($cached || !$user_sequence) {
    return;
 }
Notice: Undefined index: user_sequence
I have fixed that with:
        if (isset($user['user_sequence'])) {                     
           $user_sequence = $user['user_sequence'];     
         }
But now my second if() clause get's a warning:
Variable '$user_sequence' is probably undefined
Would setting it to null before if() be the best approach to solve it? Thanks
 
    