removing php warning