$array = array (
['1','','',''],
['2','','',''],
['3','','',''],
['4','','',''],
['5','','','']
);
if(strlen(implode(array_column($array,0)))>0){echo 'Good';}
$columns = [];
foreach($array as $row) {
foreach ($row as $i=> $col) {
$filled = $col !== "";
$columns[$i] = !empty($columns[$i]) ? $columns[$i] : $filled;
}
}
foreach($columns as $col => $result) {
echo "Колонка $col ".($result ? "не" : ""). "пустая\n";
}
if (!empty($array[0])) {
echo 'good';
}