Added exists function to scopes