PHP warning removal