@foreach($candidates as $k=>$sch) @if(!empty($sch)) 1 @endif @endforeach