In my php application i do the following check:

```
    if(($images = $main->get_images($data['id'])) || ($videos = $main->get_videos($data['id']))){
           (...)
        if($videos){
           (...)    
        }

        if($images){
           (...)
        }
    }

```

This operation sends back an error saying $videos is undefined. My guess is that if the first statement is true, the second wont be checked. Is there any neat way of preforming the second check, even is the first one is true, because in this case if images is true, videos will be evaluated as false