use defined, not !!
Merge branch 'wmts-fix' of https://github.com/kartverket/cesium into wmts-fix