PHP notice warning fix