hack to rm notices on php5.4