check if active layer is set