php scope check