We shouldn't be doing this here because we're ignoring the BASE_URL from the client. Because of this, if we're using the SDK in a different environment (not production), this check won't work correctly. We should verify that it starts with the BASE_URL value and ends with '_groups/_'.

Something like:

```python
# you can make it more elegant, but you get the point
if href_or_name.startswith(Client.BASE_URL + 'groups/'): 
```