Bu şekilde kodların arasına alıp deneyebilirsin

if (count($cek) > 0)
{
   if (isset($cek[0]))
   {
    
   }
}