Checks if a scope exists.
References:
The name of the scope to check.
Indicates if the scope exists or not.