perchè la variabile $lib_included;
puoi usare la funzione isset

if(!isset($lib_included))