removes a php warning