This could be siplified to one line:

```
return !!this._map && this._map.hasLayer(this);
```