check for presence of layers before iterating them
Merge branch 'master' into generator-assets