simpler .at(layer) check