Codice PHP:
foreach($holidays as $i=>&$day)   if( ! ($day strtotime($day)) )  unset($holidays[$i]); 
Prova così