check if scope