Check for empty array

Code Markup
if(!empty($array_to_check)){ 
// Do something with the data
}