Probably easier to write

```
if (cachedGlobalSchema[moduleId] && cachedGlobalSchema[moduleId][feature] && cachedGlobalSchema[moduleId][feature].elements && cachedGlobalSchema[moduleId][feature].elements[element]) {
return true;
} else {
return false;
}
```