PHP notice cleanup